<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Percepio Trace Recorder: include/trcRecorder.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Percepio Trace Recorder<span id="projectnumber">&#160;v4.9.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('trcRecorder_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">trcRecorder.h</div></div>
</div><!--header-->
<div class="contents">
<a href="trcRecorder_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment"> * Trace Recorder for Tracealyzer v4.9.2</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment"> * Copyright 2023 Percepio AB</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"> * www.percepio.com</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"> *</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment"> * SPDX-License-Identifier: Apache-2.0</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment"> */</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#ifndef TRC_RECORDER_H</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#define TRC_RECORDER_H</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span><span class="preprocessor">#define TRC_ACKNOWLEDGED (0xABC99123)</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="preprocessor">#include &lt;trcDefines.h&gt;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="preprocessor">#include &lt;trcConfig.h&gt;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span><span class="preprocessor">#include &lt;trcKernelPortConfig.h&gt;</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span><span class="comment">/* If TRC_CFG_RECORDER_MODE is not defined we assume there is no support</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span><span class="comment"> * for the classic snapshot mode and default to streaming mode where</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="comment"> * the new RingBuffer snapshot mode provides snapshot functionality.</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="comment"> */</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span><span class="preprocessor">#ifndef TRC_CFG_RECORDER_MODE</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="preprocessor">#define TRC_CFG_RECORDER_MODE TRC_RECORDER_MODE_STREAMING</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span><span class="comment">/* Some types may be defined differently based on TRC_CFG_RECORDER_MODE */</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span><span class="preprocessor">#include &lt;trcTypes.h&gt;</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span><span class="preprocessor">#ifndef TRC_CFG_TEST_MODE</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span><span class="preprocessor">#define TRC_CFG_TEST_MODE 0</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span><span class="preprocessor">#if (TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_SNAPSHOT)</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span><span class="preprocessor">#include &lt;trcSnapshotConfig.h&gt;</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span><span class="preprocessor">#include &lt;trcKernelPortSnapshotConfig.h&gt;</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span><span class="comment">/* Calls xTraceError if the _assert condition is false. For void functions,</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span><span class="comment">where no return value is to be provided. */</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span><span class="preprocessor">#define TRC_ASSERT_VOID(_assert, _err) if (! (_assert)){ prvTraceError(_err); return; }</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span><span class="comment">/* Calls xTraceError if the _assert condition is false. For non-void functions,</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span><span class="comment">where a return value is to be provided. */</span></div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span><span class="preprocessor">#define TRC_ASSERT_RET(_assert, _err, _return) if (! (_assert)){ prvTraceError(_err); return _return; }</span></div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span><span class="keyword">typedef</span> uint8_t traceUBChannel;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span><span class="keyword">typedef</span> uint8_t traceObjectClass;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span> </div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span><span class="preprocessor">#undef traceHandle</span></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span><span class="preprocessor">#if (TRC_CFG_USE_16BIT_OBJECT_HANDLES == 1)</span></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span><span class="keyword">typedef</span> uint16_t traceHandle;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span><span class="preprocessor">#else </span><span class="comment">/* (TRC_CFG_USE_16BIT_OBJECT_HANDLES == 1) */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span><span class="keyword">typedef</span> uint8_t traceHandle;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span><span class="preprocessor">#endif </span><span class="comment">/* (TRC_CFG_USE_16BIT_OBJECT_HANDLES == 1) */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span><span class="preprocessor">#undef TraceISRHandle_t</span></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span><span class="preprocessor">#define TraceISRHandle_t traceHandle</span></div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span> </div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span><span class="preprocessor">#include &lt;trcHardwarePort.h&gt;</span></div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span><span class="preprocessor">#include &lt;trcKernelPort.h&gt;</span></div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span><span class="comment">/* Not yet available in snapshot mode */</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span><span class="preprocessor">#define xTracePrintFormat0(_c, _f) </span></div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span><span class="preprocessor">#define xTracePrintFormat1(_c, _f, _p1) </span></div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span><span class="preprocessor">#define xTracePrintFormat2(_c, _f, _p1, _p2) </span></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span><span class="preprocessor">#define xTracePrintFormat3(_c, _f, _p1, _p2, _p3) </span></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span><span class="preprocessor">#define xTracePrintFormat4(_c, _f, _p1, _p2, _p3, _p4) </span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span><span class="preprocessor">#define vTraceConsoleChannelPrintF(fmt, ...) (void)</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span><span class="preprocessor">#define xTraceConsoleChannelPrintF(fmt, ...) (void)</span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span><span class="preprocessor">#define prvTraceStoreEvent_None(...) </span></div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span><span class="preprocessor">#define prvTraceStoreEvent_Handle(...) </span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span><span class="preprocessor">#define prvTraceStoreEvent_Param(...) </span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span><span class="preprocessor">#define prvTraceStoreEvent_HandleParam(...) </span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span><span class="preprocessor">#define prvTraceStoreEvent_ParamParam(...) </span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span><span class="preprocessor">#define prvTraceStoreEvent_HandleParamParam(...) </span></div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span><span class="preprocessor">#define prvTraceStoreEvent_ParamParamParam(...) </span></div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span><span class="preprocessor">#endif </span><span class="comment">/* (TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_SNAPSHOT) */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span> </div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span><span class="preprocessor">#if (TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_STREAMING)</span></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span><span class="preprocessor">#include &lt;trcStreamingConfig.h&gt;</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span><span class="preprocessor">#include &lt;trcKernelPortStreamingConfig.h&gt;</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span> </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span><span class="comment">/* Unless specified in trcConfig.h we assume this is a single core target */</span></div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span><span class="preprocessor">#ifndef TRC_CFG_CORE_COUNT</span></div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span><span class="preprocessor">#define TRC_CFG_CORE_COUNT 1</span></div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span> </div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span><span class="comment">/* Unless specified in trcConfig.h we assume this is a single core target */</span></div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span><span class="preprocessor">#ifndef TRC_CFG_GET_CURRENT_CORE</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span><span class="preprocessor">#define TRC_CFG_GET_CURRENT_CORE() 0</span></div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span> </div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span><span class="comment">/* Unless specified in trcConfig.h or trcKernelPortConfig.h we assume</span></div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span><span class="comment"> * GCC statement expressions aren&#39;t supported. */</span></div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span><span class="preprocessor">#ifndef TRC_CFG_USE_GCC_STATEMENT_EXPR</span></div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span><span class="preprocessor">#define TRC_CFG_USE_GCC_STATEMENT_EXPR 0</span></div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span><span class="comment">/* Backwards compatibility */</span></div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span><span class="preprocessor">#undef traceHandle</span></div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span><span class="preprocessor">#define traceHandle TraceISRHandle_t</span></div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span> </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span><span class="comment">/* Maximum event size */</span></div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span><span class="preprocessor">#define TRC_MAX_BLOB_SIZE (16UL * sizeof(TraceUnsignedBaseType_t))</span></div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span> </div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span><span class="comment">/* Platform name length */</span></div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span><span class="preprocessor">#define TRC_PLATFORM_CFG_LENGTH 8UL</span></div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span><span class="comment">/* Header size */</span></div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span><span class="preprocessor">#define TRC_HEADER_BUFFER_SIZE (sizeof(uint32_t) + sizeof(uint16_t) + sizeof(uint16_t) + sizeof(uint32_t) + sizeof(uint32_t) + sizeof(uint32_t) + sizeof(uint16_t) + sizeof(uint8_t) + sizeof(uint8_t) + (sizeof(char) * (TRC_PLATFORM_CFG_LENGTH)))</span></div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span><span class="keyword">typedef</span> <span class="keyword">struct </span>TraceHeaderBuffer    <span class="comment">/* Aligned */</span></div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>{</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>    uint8_t buffer[TRC_HEADER_BUFFER_SIZE];</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span>} TraceHeaderBuffer_t;</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span> </div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span><span class="preprocessor">#include &lt;trcHardwarePort.h&gt;</span></div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span><span class="preprocessor">#include &lt;trcKernelPort.h&gt;</span></div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span><span class="preprocessor">#include &lt;<a class="code" href="trcString_8h.html">trcString.h</a>&gt;</span></div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span><span class="preprocessor">#include &lt;<a class="code" href="trcStaticBuffer_8h.html">trcStaticBuffer.h</a>&gt;</span></div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span><span class="preprocessor">#include &lt;<a class="code" href="trcError_8h.html">trcError.h</a>&gt;</span></div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span><span class="preprocessor">#include &lt;<a class="code" href="trcEvent_8h.html">trcEvent.h</a>&gt;</span></div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span><span class="preprocessor">#include &lt;<a class="code" href="trcEventBuffer_8h.html">trcEventBuffer.h</a>&gt;</span></div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span><span class="preprocessor">#include &lt;<a class="code" href="trcMultiCoreEventBuffer_8h.html">trcMultiCoreEventBuffer.h</a>&gt;</span></div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span><span class="preprocessor">#include &lt;<a class="code" href="trcTimestamp_8h.html">trcTimestamp.h</a>&gt;</span></div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span><span class="preprocessor">#include &lt;<a class="code" href="trcEntryTable_8h.html">trcEntryTable.h</a>&gt;</span></div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span><span class="preprocessor">#include &lt;trcStreamPort.h&gt;</span></div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span><span class="preprocessor">#include &lt;<a class="code" href="trcISR_8h.html">trcISR.h</a>&gt;</span></div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span><span class="preprocessor">#include &lt;<a class="code" href="trcTask_8h.html">trcTask.h</a>&gt;</span></div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span><span class="preprocessor">#include &lt;<a class="code" href="trcObject_8h.html">trcObject.h</a>&gt;</span></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span><span class="preprocessor">#include &lt;<a class="code" href="trcPrint_8h.html">trcPrint.h</a>&gt;</span></div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span><span class="preprocessor">#include &lt;<a class="code" href="trcHeap_8h.html">trcHeap.h</a>&gt;</span></div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span><span class="preprocessor">#include &lt;<a class="code" href="trcExtension_8h.html">trcExtension.h</a>&gt;</span></div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span><span class="preprocessor">#include &lt;trcUtility.h&gt;</span></div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span><span class="preprocessor">#include &lt;<a class="code" href="trcStackMonitor_8h.html">trcStackMonitor.h</a>&gt;</span></div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span><span class="preprocessor">#include &lt;<a class="code" href="trcInternalEventBuffer_8h.html">trcInternalEventBuffer.h</a>&gt;</span></div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span><span class="preprocessor">#include &lt;<a class="code" href="trcDiagnostics_8h.html">trcDiagnostics.h</a>&gt;</span></div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span><span class="preprocessor">#include &lt;<a class="code" href="trcAssert_8h.html">trcAssert.h</a>&gt;</span></div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span><span class="preprocessor">#include &lt;<a class="code" href="trcRunnable_8h.html">trcRunnable.h</a>&gt;</span></div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span><span class="preprocessor">#include &lt;<a class="code" href="trcDependency_8h.html">trcDependency.h</a>&gt;</span></div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno">  158</span><span class="preprocessor">#include &lt;<a class="code" href="trcProcess_8h.html">trcProcess.h</a>&gt;</span></div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span><span class="preprocessor">#include &lt;<a class="code" href="trcThread_8h.html">trcThread.h</a>&gt;</span></div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span><span class="preprocessor">#endif </span><span class="comment">/* (TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_STREAMING) */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span> </div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span><span class="comment">/* These includes offer functionality for Streaming mode only, but they are included here in order to avoid compilation errors */</span></div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span><span class="preprocessor">#include &lt;<a class="code" href="trcInterval_8h.html">trcInterval.h</a>&gt;</span></div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span><span class="preprocessor">#include &lt;<a class="code" href="trcStateMachine_8h.html">trcStateMachine.h</a>&gt;</span></div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span><span class="preprocessor">#include &lt;<a class="code" href="trcCounter_8h.html">trcCounter.h</a>&gt;</span></div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span> </div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span><span class="preprocessor">#if (TRC_USE_TRACEALYZER_RECORDER == 1)</span></div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span> </div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno">  170</span><span class="comment">/******************************************************************************/</span></div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno">  171</span><span class="comment">/*** Common API - both Snapshot and Streaming mode ****************************/</span></div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno">  172</span><span class="comment">/******************************************************************************/</span></div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span> </div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span>traceResult <a class="code hl_function" href="trcRecorder_8h.html#a55cefe256f7bfcfa9085667696a1752d">xTraceInitialize</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span> </div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno">  261</span>traceResult xTraceEnable(uint32_t uiStartOption);</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno">  262</span> </div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno">  269</span>traceResult <a class="code hl_function" href="trcRecorder_8h.html#a62af22d9ff86d507040b538cf0c86c53">xTraceDisable</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno">  270</span> </div>
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno">  320</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#aff475da7b20b3621add3623b5e293575">vTraceSetFilterGroup</a>(uint16_t filterGroup);</div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno">  321</span> </div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno">  342</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#a5cb58f094eb23d0a9ef7984b498e7d9f">vTraceSetFilterMask</a>(uint16_t filterMask);</div>
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno">  343</span> </div>
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno">  344</span><span class="preprocessor">#if (TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_SNAPSHOT)</span></div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno">  345</span> </div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno">  346</span><span class="preprocessor">#include &lt;stdarg.h&gt;</span></div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno">  347</span> </div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a0be07ccb07bfdc964b8afb2a3942666e">  353</a></span><span class="preprocessor">#define TRACE_GET_LOW16(value) ((uint16_t)((value) &amp; 0x0000FFFF))</span></div>
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno">  354</span> </div>
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a65cfc74ff712c7408f868b91ec142a5b">  360</a></span><span class="preprocessor">#define TRACE_GET_HIGH16(value) ((uint16_t)(((value) &gt;&gt; 16) &amp; 0x0000FFFF))</span></div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno">  361</span> </div>
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#ae52706e82ec178b04522ed536eaad2a3">  368</a></span><span class="preprocessor">#define TRACE_SET_LOW16(current, value)  (((current) &amp; 0xFFFF0000) | (value))</span></div>
<div class="line"><a id="l00369" name="l00369"></a><span class="lineno">  369</span> </div>
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#aaa24e857131d37a5602ce9c3bb125157">  376</a></span><span class="preprocessor">#define TRACE_SET_HIGH16(current, value) (((current) &amp; 0x0000FFFF) | (((uint32_t)(value)) &lt;&lt; 16))</span></div>
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno">  377</span> </div>
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno">  378</span><span class="preprocessor">#if defined (TRC_CFG_ENABLE_STACK_MONITOR) &amp;&amp; (TRC_CFG_ENABLE_STACK_MONITOR == 1) &amp;&amp; (TRC_CFG_SCHEDULING_ONLY == 0)</span></div>
<div class="line"><a id="l00384" name="l00384"></a><span class="lineno">  384</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#af17eedfd433bb638557a4ac0c5d77499">prvAddTaskToStackMonitor</a>(<span class="keywordtype">void</span>* task);</div>
<div class="line"><a id="l00385" name="l00385"></a><span class="lineno">  385</span> </div>
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno">  391</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#a689f9cad63fd3aebb3264b9b04793a3c">prvRemoveTaskFromStackMonitor</a>(<span class="keywordtype">void</span>* task);</div>
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno">  392</span> </div>
<div class="line"><a id="l00396" name="l00396"></a><span class="lineno">  396</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#a544078dcebe479dc4a4033dabcaeda44">prvReportStackUsage</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno">  397</span> </div>
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno">  398</span><span class="preprocessor">#else </span><span class="comment">/* defined (TRC_CFG_ENABLE_STACK_MONITOR) &amp;&amp; (TRC_CFG_ENABLE_STACK_MONITOR == 1) &amp;&amp; (TRC_CFG_SCHEDULING_ONLY == 0) */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00399" name="l00399"></a><span class="lineno">  399</span> </div>
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno">  400</span><span class="preprocessor">#define prvAddTaskToStackMonitor(task) </span></div>
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno">  401</span><span class="preprocessor">#define prvRemoveTaskFromStackMonitor(task) </span></div>
<div class="line"><a id="l00402" name="l00402"></a><span class="lineno">  402</span><span class="preprocessor">#define prvReportStackUsage()</span></div>
<div class="line"><a id="l00403" name="l00403"></a><span class="lineno">  403</span> </div>
<div class="line"><a id="l00404" name="l00404"></a><span class="lineno">  404</span><span class="preprocessor">#endif </span><span class="comment">/* defined (TRC_CFG_ENABLE_STACK_MONITOR) &amp;&amp; (TRC_CFG_ENABLE_STACK_MONITOR == 1) &amp;&amp; (TRC_CFG_SCHEDULING_ONLY == 0) */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno">  405</span> </div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno">  409</span>traceHandle xTraceSetISRProperties(<span class="keyword">const</span> <span class="keywordtype">char</span>* szName, uint8_t uiPriority);</div>
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno">  410</span> </div>
<div class="line"><a id="l00429" name="l00429"></a><span class="lineno">  429</span>traceResult <a class="code hl_function" href="group__trace__isr__apis.html#ga0ef382e6e5964c8db9b807434b931921">xTraceISRRegister</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* szName, uint32_t uiPriority, TraceISRHandle_t* pxISRHandle);</div>
<div class="line"><a id="l00430" name="l00430"></a><span class="lineno">  430</span> </div>
<div class="line"><a id="l00455" name="l00455"></a><span class="lineno">  455</span>traceResult <a class="code hl_function" href="group__trace__isr__apis.html#ga28db1b1d4243e36cb68178af0387206a">xTraceISRBegin</a>(TraceISRHandle_t xHandle);</div>
<div class="line"><a id="l00456" name="l00456"></a><span class="lineno">  456</span> </div>
<div class="line"><a id="l00457" name="l00457"></a><span class="lineno">  457</span><span class="preprocessor">#define vTraceStoreISRBegin(__handle) (void)xTraceISRBegin((TraceISRHandle_t)(__handle))</span></div>
<div class="line"><a id="l00458" name="l00458"></a><span class="lineno">  458</span> </div>
<div class="line"><a id="l00486" name="l00486"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a15ba5c0835d0f746e7a721b8acedab70">  486</a></span>traceResult <a class="code hl_function" href="trcRecorder_8h.html#a15ba5c0835d0f746e7a721b8acedab70">xTraceISREnd</a>(<span class="keywordtype">int</span> pendingISR);</div>
<div class="line"><a id="l00487" name="l00487"></a><span class="lineno">  487</span> </div>
<div class="line"><a id="l00488" name="l00488"></a><span class="lineno">  488</span><span class="preprocessor">#define vTraceStoreISREnd(__pendingISR) (void)xTraceISREnd(__pendingISR)</span></div>
<div class="line"><a id="l00489" name="l00489"></a><span class="lineno">  489</span> </div>
<div class="line"><a id="l00496" name="l00496"></a><span class="lineno">  496</span>uint32_t <a class="code hl_define" href="trcRecorder_8h.html#a1991479e9a6d6653333f8bb854abbbab">xTraceIsRecorderEnabled</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00497" name="l00497"></a><span class="lineno">  497</span> </div>
<div class="line"><a id="l00504" name="l00504"></a><span class="lineno">  504</span>uint32_t <a class="code hl_define" href="trcRecorder_8h.html#a0a44ba3c19b138067aecae815af61ca2">xTraceIsRecorderInitialized</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00505" name="l00505"></a><span class="lineno">  505</span> </div>
<div class="line"><a id="l00516" name="l00516"></a><span class="lineno">  516</span>traceResult <a class="code hl_function" href="trcRecorder_8h.html#a21379c3d2f31b2370bc19c5c2ddce32f">xTraceTaskInstanceFinishedNow</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00517" name="l00517"></a><span class="lineno">  517</span> </div>
<div class="line"><a id="l00532" name="l00532"></a><span class="lineno">  532</span>traceResult <a class="code hl_function" href="trcRecorder_8h.html#a16c82bbd9f4fe8df1cd5c544f988e827">xTraceTaskInstanceFinishedNext</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00533" name="l00533"></a><span class="lineno">  533</span> </div>
<div class="line"><a id="l00543" name="l00543"></a><span class="lineno">  543</span>traceResult <a class="code hl_function" href="trcRecorder_8h.html#aaa9ee50f419cb5dda37c17dfa0144c3a">xTraceStringRegister</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* label, TraceStringHandle_t* pxString);</div>
<div class="line"><a id="l00544" name="l00544"></a><span class="lineno">  544</span> </div>
<div class="line"><a id="l00554" name="l00554"></a><span class="lineno">  554</span>TraceStringHandle_t <a class="code hl_function" href="trcRecorder_8h.html#afd44a44fe62cd56a66a998e87dae821b">xTraceRegisterString</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);</div>
<div class="line"><a id="l00555" name="l00555"></a><span class="lineno">  555</span> </div>
<div class="line"><a id="l00556" name="l00556"></a><span class="lineno">  556</span><span class="preprocessor">#if (TRC_CFG_SCHEDULING_ONLY == 0) &amp;&amp; (TRC_CFG_INCLUDE_USER_EVENTS == 1)</span></div>
<div class="line"><a id="l00635" name="l00635"></a><span class="lineno">  635</span>traceResult <a class="code hl_function" href="group__trace__print__apis.html#gaf7a1c759021aaf820223232de9173c9c">xTracePrintF</a>(TraceStringHandle_t chn, <span class="keyword">const</span> <span class="keywordtype">char</span>* fmt, ...);</div>
<div class="line"><a id="l00636" name="l00636"></a><span class="lineno">  636</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00637" name="l00637"></a><span class="lineno">  637</span><span class="preprocessor">#define xTracePrintF(chn, fmt, ...) ((void)(chn), (void)(fmt), TRC_SUCCESS) </span><span class="comment">/* Comma operator is used to avoid &quot;unused variable&quot; compiler warnings in a single statement */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00638" name="l00638"></a><span class="lineno">  638</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00639" name="l00639"></a><span class="lineno">  639</span> </div>
<div class="line"><a id="l00640" name="l00640"></a><span class="lineno">  640</span><span class="preprocessor">#if (TRC_CFG_SCHEDULING_ONLY == 0) &amp;&amp; (TRC_CFG_INCLUDE_USER_EVENTS == 1)</span></div>
<div class="line"><a id="l00654" name="l00654"></a><span class="lineno">  654</span>traceResult <a class="code hl_function" href="trcRecorder_8h.html#a49eb54508af420dee28fac922ce42a73">xTraceVPrintF</a>(TraceStringHandle_t eventLabel, <span class="keyword">const</span> <span class="keywordtype">char</span>* formatStr, va_list vl);</div>
<div class="line"><a id="l00655" name="l00655"></a><span class="lineno">  655</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00656" name="l00656"></a><span class="lineno">  656</span><span class="preprocessor">#define xTraceVPrintF(chn, formatStr, vl) ((void)(chn), (void)(formatStr), (void)(vl), TRC_SUCCESS) </span><span class="comment">/* Comma operator is used to avoid &quot;unused variable&quot; compiler warnings in a single statement */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00657" name="l00657"></a><span class="lineno">  657</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00658" name="l00658"></a><span class="lineno">  658</span> </div>
<div class="line"><a id="l00659" name="l00659"></a><span class="lineno">  659</span><span class="preprocessor">#if (TRC_CFG_SCHEDULING_ONLY == 0) &amp;&amp; (TRC_CFG_INCLUDE_USER_EVENTS == 1)</span></div>
<div class="line"><a id="l00676" name="l00676"></a><span class="lineno">  676</span>traceResult <a class="code hl_function" href="group__trace__print__apis.html#gab883a6ad75c359454757ddb0503f5d3b">xTracePrint</a>(TraceStringHandle_t chn, <span class="keyword">const</span> <span class="keywordtype">char</span>* str);</div>
<div class="line"><a id="l00677" name="l00677"></a><span class="lineno">  677</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00678" name="l00678"></a><span class="lineno">  678</span><span class="preprocessor">#define xTracePrint(chn, str) ((void)(chn), (void)(str), TRC_SUCCESS)</span></div>
<div class="line"><a id="l00679" name="l00679"></a><span class="lineno">  679</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00680" name="l00680"></a><span class="lineno">  680</span> </div>
<div class="line"><a id="l00681" name="l00681"></a><span class="lineno">  681</span><span class="comment">/******************************************************************************/</span></div>
<div class="line"><a id="l00682" name="l00682"></a><span class="lineno">  682</span><span class="comment">/*** Extended API for Snapshot mode *******************************************/</span></div>
<div class="line"><a id="l00683" name="l00683"></a><span class="lineno">  683</span><span class="comment">/******************************************************************************/</span></div>
<div class="line"><a id="l00684" name="l00684"></a><span class="lineno">  684</span> </div>
<div class="line"><a id="l00688" name="l00688"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a80ef75431674bd23f75b4658f5ebce16">  688</a></span><span class="keyword">typedef</span> void(*<a class="code hl_typedef" href="trcRecorder_8h.html#a80ef75431674bd23f75b4658f5ebce16">TRACE_STOP_HOOK</a>)(void);</div>
<div class="line"><a id="l00689" name="l00689"></a><span class="lineno">  689</span> </div>
<div class="line"><a id="l00697" name="l00697"></a><span class="lineno">  697</span><span class="keywordtype">void</span> <a class="code hl_define" href="trcRecorder_8h.html#a595c6523320f46204bdac038591f9bdb">vTraceSetStopHook</a>(<a class="code hl_typedef" href="trcRecorder_8h.html#a80ef75431674bd23f75b4658f5ebce16">TRACE_STOP_HOOK</a> stopHookFunction);</div>
<div class="line"><a id="l00698" name="l00698"></a><span class="lineno">  698</span> </div>
<div class="line"><a id="l00709" name="l00709"></a><span class="lineno">  709</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#a438c3685b1e39f8c507982077e135fe0">vTraceClear</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00710" name="l00710"></a><span class="lineno">  710</span> </div>
<div class="line"><a id="l00711" name="l00711"></a><span class="lineno">  711</span><span class="comment">/*****************************************************************************/</span></div>
<div class="line"><a id="l00712" name="l00712"></a><span class="lineno">  712</span><span class="comment">/*** INTERNAL SNAPSHOT FUNCTIONS *********************************************/</span></div>
<div class="line"><a id="l00713" name="l00713"></a><span class="lineno">  713</span><span class="comment">/*****************************************************************************/</span></div>
<div class="line"><a id="l00714" name="l00714"></a><span class="lineno">  714</span> </div>
<div class="line"><a id="l00715" name="l00715"></a><span class="lineno">  715</span><span class="preprocessor">#define TRC_UNUSED</span></div>
<div class="line"><a id="l00716" name="l00716"></a><span class="lineno">  716</span> </div>
<div class="line"><a id="l00717" name="l00717"></a><span class="lineno">  717</span><span class="preprocessor">#ifndef TRC_CFG_INCLUDE_OBJECT_DELETE</span></div>
<div class="line"><a id="l00718" name="l00718"></a><span class="lineno">  718</span><span class="preprocessor">#define TRC_CFG_INCLUDE_OBJECT_DELETE 0</span></div>
<div class="line"><a id="l00719" name="l00719"></a><span class="lineno">  719</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00720" name="l00720"></a><span class="lineno">  720</span> </div>
<div class="line"><a id="l00721" name="l00721"></a><span class="lineno">  721</span><span class="preprocessor">#ifndef TRC_CFG_INCLUDE_READY_EVENTS</span></div>
<div class="line"><a id="l00722" name="l00722"></a><span class="lineno">  722</span><span class="preprocessor">#define TRC_CFG_INCLUDE_READY_EVENTS 1</span></div>
<div class="line"><a id="l00723" name="l00723"></a><span class="lineno">  723</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00724" name="l00724"></a><span class="lineno">  724</span> </div>
<div class="line"><a id="l00725" name="l00725"></a><span class="lineno">  725</span><span class="preprocessor">#ifndef TRC_CFG_INCLUDE_OSTICK_EVENTS</span></div>
<div class="line"><a id="l00726" name="l00726"></a><span class="lineno">  726</span><span class="preprocessor">#define TRC_CFG_INCLUDE_OSTICK_EVENTS 0</span></div>
<div class="line"><a id="l00727" name="l00727"></a><span class="lineno">  727</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00728" name="l00728"></a><span class="lineno">  728</span> </div>
<div class="line"><a id="l00729" name="l00729"></a><span class="lineno">  729</span><span class="comment">/* This macro will create a task in the object table */</span></div>
<div class="line"><a id="l00730" name="l00730"></a><span class="lineno">  730</span><span class="preprocessor">#undef trcKERNEL_HOOKS_TASK_CREATE</span></div>
<div class="line"><a id="l00731" name="l00731"></a><span class="lineno">  731</span><span class="preprocessor">#define trcKERNEL_HOOKS_TASK_CREATE(SERVICE, CLASS, pxTCB) \</span></div>
<div class="line"><a id="l00732" name="l00732"></a><span class="lineno">  732</span><span class="preprocessor">    if ((pxTCB) != 0) \</span></div>
<div class="line"><a id="l00733" name="l00733"></a><span class="lineno">  733</span><span class="preprocessor">    { \</span></div>
<div class="line"><a id="l00734" name="l00734"></a><span class="lineno">  734</span><span class="preprocessor">        TRACE_SET_OBJECT_NUMBER(TASK, pxTCB); \</span></div>
<div class="line"><a id="l00735" name="l00735"></a><span class="lineno">  735</span><span class="preprocessor">        TRACE_SET_OBJECT_FILTER(TASK, pxTCB, CurrentFilterGroup); \</span></div>
<div class="line"><a id="l00736" name="l00736"></a><span class="lineno">  736</span><span class="preprocessor">        prvTraceSetObjectName(TRACE_CLASS_TASK, TRACE_GET_TASK_NUMBER(pxTCB), TRACE_GET_TASK_NAME(pxTCB)); \</span></div>
<div class="line"><a id="l00737" name="l00737"></a><span class="lineno">  737</span><span class="preprocessor">        prvTraceSetPriorityProperty(TRACE_CLASS_TASK, TRACE_GET_TASK_NUMBER(pxTCB), TRACE_GET_TASK_PRIORITY(pxTCB)); \</span></div>
<div class="line"><a id="l00738" name="l00738"></a><span class="lineno">  738</span><span class="preprocessor">        if (TRACE_GET_OBJECT_FILTER(TASK, TRACE_GET_CURRENT_TASK()) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00739" name="l00739"></a><span class="lineno">  739</span><span class="preprocessor">            if (TRACE_GET_OBJECT_FILTER(TASK, pxTCB) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00740" name="l00740"></a><span class="lineno">  740</span><span class="preprocessor">                prvTraceStoreKernelCall(SERVICE, TRACE_CLASS_TASK, TRACE_GET_TASK_NUMBER(pxTCB)); \</span></div>
<div class="line"><a id="l00741" name="l00741"></a><span class="lineno">  741</span><span class="preprocessor">    } \</span></div>
<div class="line"><a id="l00742" name="l00742"></a><span class="lineno">  742</span><span class="preprocessor">    else \</span></div>
<div class="line"><a id="l00743" name="l00743"></a><span class="lineno">  743</span><span class="preprocessor">    { \</span></div>
<div class="line"><a id="l00744" name="l00744"></a><span class="lineno">  744</span><span class="preprocessor">        </span><span class="comment">/* pxTCB is null */</span><span class="preprocessor"> \</span></div>
<div class="line"><a id="l00745" name="l00745"></a><span class="lineno">  745</span><span class="preprocessor">        if (TRACE_GET_OBJECT_FILTER(TASK, TRACE_GET_CURRENT_TASK()) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00746" name="l00746"></a><span class="lineno">  746</span><span class="preprocessor">        { \</span></div>
<div class="line"><a id="l00747" name="l00747"></a><span class="lineno">  747</span><span class="preprocessor">            prvTraceStoreKernelCall(SERVICE, TRACE_CLASS_TASK, 0); \</span></div>
<div class="line"><a id="l00748" name="l00748"></a><span class="lineno">  748</span><span class="preprocessor">        } \</span></div>
<div class="line"><a id="l00749" name="l00749"></a><span class="lineno">  749</span><span class="preprocessor">    }</span></div>
<div class="line"><a id="l00750" name="l00750"></a><span class="lineno">  750</span> </div>
<div class="line"><a id="l00751" name="l00751"></a><span class="lineno">  751</span><span class="comment">/* This macro will remove the task and store it in the event buffer */</span></div>
<div class="line"><a id="l00752" name="l00752"></a><span class="lineno">  752</span><span class="preprocessor">#undef trcKERNEL_HOOKS_TASK_DELETE</span></div>
<div class="line"><a id="l00753" name="l00753"></a><span class="lineno">  753</span><span class="preprocessor">#define trcKERNEL_HOOKS_TASK_DELETE(SERVICE, SERVICE_NAME, SERVICE_PROP, pxTCB) \</span></div>
<div class="line"><a id="l00754" name="l00754"></a><span class="lineno">  754</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(TASK, TRACE_GET_CURRENT_TASK()) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00755" name="l00755"></a><span class="lineno">  755</span><span class="preprocessor">        if (TRACE_GET_OBJECT_FILTER(TASK, pxTCB) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00756" name="l00756"></a><span class="lineno">  756</span><span class="preprocessor">            prvTraceStoreKernelCall(SERVICE, TRACE_CLASS_TASK, TRACE_GET_TASK_NUMBER(pxTCB)); \</span></div>
<div class="line"><a id="l00757" name="l00757"></a><span class="lineno">  757</span><span class="preprocessor">    prvTraceStoreObjectNameOnCloseEvent(SERVICE_NAME, TRACE_GET_TASK_NUMBER(pxTCB), TRACE_CLASS_TASK); \</span></div>
<div class="line"><a id="l00758" name="l00758"></a><span class="lineno">  758</span><span class="preprocessor">    prvTraceStoreObjectPropertiesOnCloseEvent(SERVICE_PROP, TRACE_GET_TASK_NUMBER(pxTCB), TRACE_CLASS_TASK); \</span></div>
<div class="line"><a id="l00759" name="l00759"></a><span class="lineno">  759</span><span class="preprocessor">    prvTraceSetPriorityProperty(TRACE_CLASS_TASK, TRACE_GET_TASK_NUMBER(pxTCB), TRACE_GET_TASK_PRIORITY(pxTCB)); \</span></div>
<div class="line"><a id="l00760" name="l00760"></a><span class="lineno">  760</span><span class="preprocessor">    prvTraceSetObjectState(TRACE_CLASS_TASK, TRACE_GET_TASK_NUMBER(pxTCB), TASK_STATE_INSTANCE_NOT_ACTIVE); \</span></div>
<div class="line"><a id="l00761" name="l00761"></a><span class="lineno">  761</span><span class="preprocessor">    prvTraceFreeObjectHandle(TRACE_CLASS_TASK, TRACE_GET_TASK_NUMBER(pxTCB));</span></div>
<div class="line"><a id="l00762" name="l00762"></a><span class="lineno">  762</span> </div>
<div class="line"><a id="l00763" name="l00763"></a><span class="lineno">  763</span> </div>
<div class="line"><a id="l00764" name="l00764"></a><span class="lineno">  764</span><span class="comment">/* This macro will setup a task in the object table */</span></div>
<div class="line"><a id="l00765" name="l00765"></a><span class="lineno">  765</span><span class="preprocessor">#undef trcKERNEL_HOOKS_OBJECT_CREATE</span></div>
<div class="line"><a id="l00766" name="l00766"></a><span class="lineno">  766</span><span class="preprocessor">#define trcKERNEL_HOOKS_OBJECT_CREATE(SERVICE, CLASS, pxObject) \</span></div>
<div class="line"><a id="l00767" name="l00767"></a><span class="lineno">  767</span><span class="preprocessor">    TRACE_SET_OBJECT_NUMBER(CLASS, pxObject); \</span></div>
<div class="line"><a id="l00768" name="l00768"></a><span class="lineno">  768</span><span class="preprocessor">    TRACE_SET_OBJECT_FILTER(CLASS, pxObject, CurrentFilterGroup); \</span></div>
<div class="line"><a id="l00769" name="l00769"></a><span class="lineno">  769</span><span class="preprocessor">    prvMarkObjectAsUsed(TRACE_GET_OBJECT_TRACE_CLASS(CLASS, pxObject),  TRACE_GET_OBJECT_NUMBER(CLASS, pxObject));\</span></div>
<div class="line"><a id="l00770" name="l00770"></a><span class="lineno">  770</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(TASK, TRACE_GET_CURRENT_TASK()) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00771" name="l00771"></a><span class="lineno">  771</span><span class="preprocessor">        if (TRACE_GET_OBJECT_FILTER(CLASS, pxObject) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00772" name="l00772"></a><span class="lineno">  772</span><span class="preprocessor">            prvTraceStoreKernelCall(SERVICE, TRACE_GET_OBJECT_TRACE_CLASS(CLASS, pxObject), TRACE_GET_OBJECT_NUMBER(CLASS, pxObject)); \</span></div>
<div class="line"><a id="l00773" name="l00773"></a><span class="lineno">  773</span><span class="preprocessor">    prvTraceSetObjectState(TRACE_GET_OBJECT_TRACE_CLASS(CLASS, pxObject), TRACE_GET_OBJECT_NUMBER(CLASS, pxObject), 0);</span></div>
<div class="line"><a id="l00774" name="l00774"></a><span class="lineno">  774</span> </div>
<div class="line"><a id="l00775" name="l00775"></a><span class="lineno">  775</span><span class="comment">/* This macro will setup a task in the object table */</span></div>
<div class="line"><a id="l00776" name="l00776"></a><span class="lineno">  776</span><span class="preprocessor">#undef trcKERNEL_HOOKS_OBJECT_CREATE_FAILED</span></div>
<div class="line"><a id="l00777" name="l00777"></a><span class="lineno">  777</span><span class="preprocessor">#define trcKERNEL_HOOKS_OBJECT_CREATE_FAILED(SERVICE, TRACE_CLASS)\</span></div>
<div class="line"><a id="l00778" name="l00778"></a><span class="lineno">  778</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(TASK, TRACE_GET_CURRENT_TASK()) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00779" name="l00779"></a><span class="lineno">  779</span><span class="preprocessor">    { \</span></div>
<div class="line"><a id="l00780" name="l00780"></a><span class="lineno">  780</span><span class="preprocessor">        prvTraceStoreKernelCall(SERVICE, TRACE_CLASS, 0); \</span></div>
<div class="line"><a id="l00781" name="l00781"></a><span class="lineno">  781</span><span class="preprocessor">    }</span></div>
<div class="line"><a id="l00782" name="l00782"></a><span class="lineno">  782</span> </div>
<div class="line"><a id="l00783" name="l00783"></a><span class="lineno">  783</span><span class="comment">/* This macro will remove the object and store it in the event buffer */</span></div>
<div class="line"><a id="l00784" name="l00784"></a><span class="lineno">  784</span><span class="preprocessor">#undef trcKERNEL_HOOKS_OBJECT_DELETE</span></div>
<div class="line"><a id="l00785" name="l00785"></a><span class="lineno">  785</span><span class="preprocessor">#define trcKERNEL_HOOKS_OBJECT_DELETE(SERVICE, SERVICE_NAME, SERVICE_PROP, CLASS, pxObject) \</span></div>
<div class="line"><a id="l00786" name="l00786"></a><span class="lineno">  786</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(TASK, TRACE_GET_CURRENT_TASK()) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00787" name="l00787"></a><span class="lineno">  787</span><span class="preprocessor">        if (TRACE_GET_OBJECT_FILTER(CLASS, pxObject) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00788" name="l00788"></a><span class="lineno">  788</span><span class="preprocessor">            prvTraceStoreKernelCall(SERVICE, TRACE_GET_OBJECT_TRACE_CLASS(CLASS, pxObject), TRACE_GET_OBJECT_NUMBER(CLASS, pxObject)); \</span></div>
<div class="line"><a id="l00789" name="l00789"></a><span class="lineno">  789</span><span class="preprocessor">    prvTraceStoreObjectNameOnCloseEvent(SERVICE_NAME, TRACE_GET_OBJECT_NUMBER(CLASS, pxObject), TRACE_GET_OBJECT_TRACE_CLASS(CLASS, pxObject)); \</span></div>
<div class="line"><a id="l00790" name="l00790"></a><span class="lineno">  790</span><span class="preprocessor">    prvTraceStoreObjectPropertiesOnCloseEvent(SERVICE_PROP, TRACE_GET_OBJECT_NUMBER(CLASS, pxObject), TRACE_GET_OBJECT_TRACE_CLASS(CLASS, pxObject)); \</span></div>
<div class="line"><a id="l00791" name="l00791"></a><span class="lineno">  791</span><span class="preprocessor">    prvTraceFreeObjectHandle(TRACE_GET_OBJECT_TRACE_CLASS(CLASS, pxObject), TRACE_GET_OBJECT_NUMBER(CLASS, pxObject));</span></div>
<div class="line"><a id="l00792" name="l00792"></a><span class="lineno">  792</span> </div>
<div class="line"><a id="l00793" name="l00793"></a><span class="lineno">  793</span><span class="comment">/* This macro will create a call to a kernel service with a certain result, with an object as parameter */</span></div>
<div class="line"><a id="l00794" name="l00794"></a><span class="lineno">  794</span><span class="preprocessor">#undef trcKERNEL_HOOKS_KERNEL_SERVICE</span></div>
<div class="line"><a id="l00795" name="l00795"></a><span class="lineno">  795</span><span class="preprocessor">#define trcKERNEL_HOOKS_KERNEL_SERVICE(SERVICE, CLASS, pxObject) \</span></div>
<div class="line"><a id="l00796" name="l00796"></a><span class="lineno">  796</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(TASK, TRACE_GET_CURRENT_TASK()) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00797" name="l00797"></a><span class="lineno">  797</span><span class="preprocessor">        if (TRACE_GET_OBJECT_FILTER(CLASS, pxObject) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00798" name="l00798"></a><span class="lineno">  798</span><span class="preprocessor">            prvTraceStoreKernelCall(SERVICE, TRACE_GET_OBJECT_TRACE_CLASS(CLASS, pxObject), TRACE_GET_OBJECT_NUMBER(CLASS, pxObject));</span></div>
<div class="line"><a id="l00799" name="l00799"></a><span class="lineno">  799</span> </div>
<div class="line"><a id="l00800" name="l00800"></a><span class="lineno">  800</span><span class="comment">/* This macro will create a call to a kernel service with a certain result, with a null object as parameter */</span></div>
<div class="line"><a id="l00801" name="l00801"></a><span class="lineno">  801</span><span class="preprocessor">#undef trcKERNEL_HOOKS_KERNEL_SERVICE_NULL_OBJECT</span></div>
<div class="line"><a id="l00802" name="l00802"></a><span class="lineno">  802</span><span class="preprocessor">#define trcKERNEL_HOOKS_KERNEL_SERVICE_NULL_OBJECT(SERVICE, TRACECLASS) \</span></div>
<div class="line"><a id="l00803" name="l00803"></a><span class="lineno">  803</span><span class="preprocessor">    if (TRACE_GET_TASK_FILTER(TRACE_GET_CURRENT_TASK()) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00804" name="l00804"></a><span class="lineno">  804</span><span class="preprocessor">        prvTraceStoreKernelCall(SERVICE, TRACECLASS, 0);</span></div>
<div class="line"><a id="l00805" name="l00805"></a><span class="lineno">  805</span> </div>
<div class="line"><a id="l00806" name="l00806"></a><span class="lineno">  806</span><span class="comment">/* This macro will create a call to a kernel service with a certain result, with an object as parameter */</span></div>
<div class="line"><a id="l00807" name="l00807"></a><span class="lineno">  807</span><span class="preprocessor">#undef trcKERNEL_HOOKS_KERNEL_SERVICE_WITH_PARAM</span></div>
<div class="line"><a id="l00808" name="l00808"></a><span class="lineno">  808</span><span class="preprocessor">#define trcKERNEL_HOOKS_KERNEL_SERVICE_WITH_PARAM(SERVICE, CLASS, pxObject, param) \</span></div>
<div class="line"><a id="l00809" name="l00809"></a><span class="lineno">  809</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(TASK, TRACE_GET_CURRENT_TASK()) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00810" name="l00810"></a><span class="lineno">  810</span><span class="preprocessor">        if (TRACE_GET_OBJECT_FILTER(CLASS, pxObject) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00811" name="l00811"></a><span class="lineno">  811</span><span class="preprocessor">            prvTraceStoreKernelCallWithParam(SERVICE, TRACE_GET_OBJECT_TRACE_CLASS(CLASS, pxObject), TRACE_GET_OBJECT_NUMBER(CLASS, pxObject), (uint32_t)param);</span></div>
<div class="line"><a id="l00812" name="l00812"></a><span class="lineno">  812</span> </div>
<div class="line"><a id="l00813" name="l00813"></a><span class="lineno">  813</span><span class="comment">/* This macro will create a call to a kernel service with a certain result, with a null object and other value as parameter */</span></div>
<div class="line"><a id="l00814" name="l00814"></a><span class="lineno">  814</span><span class="preprocessor">#undef trcKERNEL_HOOKS_KERNEL_SERVICE_NULL_OBJECT_WITH_PARAM</span></div>
<div class="line"><a id="l00815" name="l00815"></a><span class="lineno">  815</span><span class="preprocessor">#define trcKERNEL_HOOKS_KERNEL_SERVICE_NULL_OBJECT_WITH_PARAM(SERVICE, TRACECLASS, param) \</span></div>
<div class="line"><a id="l00816" name="l00816"></a><span class="lineno">  816</span><span class="preprocessor">    if (TRACE_GET_TASK_FILTER(TRACE_GET_CURRENT_TASK()) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00817" name="l00817"></a><span class="lineno">  817</span><span class="preprocessor">        prvTraceStoreKernelCallWithParam(SERVICE, TRACECLASS, 0, param);</span></div>
<div class="line"><a id="l00818" name="l00818"></a><span class="lineno">  818</span> </div>
<div class="line"><a id="l00819" name="l00819"></a><span class="lineno">  819</span><span class="comment">/* This macro will create a call to a kernel service with a certain result, with an object as parameter */</span></div>
<div class="line"><a id="l00820" name="l00820"></a><span class="lineno">  820</span><span class="preprocessor">#undef trcKERNEL_HOOKS_KERNEL_SERVICE_WITH_NUMERIC_PARAM_ONLY</span></div>
<div class="line"><a id="l00821" name="l00821"></a><span class="lineno">  821</span><span class="preprocessor">#define trcKERNEL_HOOKS_KERNEL_SERVICE_WITH_NUMERIC_PARAM_ONLY(SERVICE, param) \</span></div>
<div class="line"><a id="l00822" name="l00822"></a><span class="lineno">  822</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(TASK, TRACE_GET_CURRENT_TASK()) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00823" name="l00823"></a><span class="lineno">  823</span><span class="preprocessor">        prvTraceStoreKernelCallWithNumericParamOnly(SERVICE, (uint32_t)param);</span></div>
<div class="line"><a id="l00824" name="l00824"></a><span class="lineno">  824</span> </div>
<div class="line"><a id="l00825" name="l00825"></a><span class="lineno">  825</span><span class="comment">/* This macro will create a call to a kernel service with a certain result, with an object as parameter */</span></div>
<div class="line"><a id="l00826" name="l00826"></a><span class="lineno">  826</span><span class="preprocessor">#undef trcKERNEL_HOOKS_KERNEL_SERVICE_FROM_ISR</span></div>
<div class="line"><a id="l00827" name="l00827"></a><span class="lineno">  827</span><span class="preprocessor">#define trcKERNEL_HOOKS_KERNEL_SERVICE_FROM_ISR(SERVICE, CLASS, pxObject) \</span></div>
<div class="line"><a id="l00828" name="l00828"></a><span class="lineno">  828</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(CLASS, pxObject) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00829" name="l00829"></a><span class="lineno">  829</span><span class="preprocessor">        prvTraceStoreKernelCall(SERVICE, TRACE_GET_OBJECT_TRACE_CLASS(CLASS, pxObject), TRACE_GET_OBJECT_NUMBER(CLASS, pxObject));</span></div>
<div class="line"><a id="l00830" name="l00830"></a><span class="lineno">  830</span> </div>
<div class="line"><a id="l00831" name="l00831"></a><span class="lineno">  831</span><span class="comment">/* This macro will create a call to a kernel service with a certain result, with a null object as parameter */</span></div>
<div class="line"><a id="l00832" name="l00832"></a><span class="lineno">  832</span><span class="preprocessor">#undef trcKERNEL_HOOKS_KERNEL_SERVICE_NULL_OBJECT_FROM_ISR</span></div>
<div class="line"><a id="l00833" name="l00833"></a><span class="lineno">  833</span><span class="preprocessor">#define trcKERNEL_HOOKS_KERNEL_SERVICE_NULL_OBJECT_FROM_ISR(SERVICE, TRACECLASS) \</span></div>
<div class="line"><a id="l00834" name="l00834"></a><span class="lineno">  834</span><span class="preprocessor">    prvTraceStoreKernelCall(SERVICE, TRACECLASS, 0);</span></div>
<div class="line"><a id="l00835" name="l00835"></a><span class="lineno">  835</span> </div>
<div class="line"><a id="l00836" name="l00836"></a><span class="lineno">  836</span><span class="comment">/* This macro will create a call to a kernel service with a certain result, with an object as parameter */</span></div>
<div class="line"><a id="l00837" name="l00837"></a><span class="lineno">  837</span><span class="preprocessor">#undef trcKERNEL_HOOKS_KERNEL_SERVICE_WITH_PARAM_FROM_ISR</span></div>
<div class="line"><a id="l00838" name="l00838"></a><span class="lineno">  838</span><span class="preprocessor">#define trcKERNEL_HOOKS_KERNEL_SERVICE_WITH_PARAM_FROM_ISR(SERVICE, CLASS, pxObject, param) \</span></div>
<div class="line"><a id="l00839" name="l00839"></a><span class="lineno">  839</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(CLASS, pxObject) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00840" name="l00840"></a><span class="lineno">  840</span><span class="preprocessor">        prvTraceStoreKernelCallWithParam(SERVICE, TRACE_GET_OBJECT_TRACE_CLASS(CLASS, pxObject), TRACE_GET_OBJECT_NUMBER(CLASS, pxObject), (uint32_t)param);</span></div>
<div class="line"><a id="l00841" name="l00841"></a><span class="lineno">  841</span> </div>
<div class="line"><a id="l00842" name="l00842"></a><span class="lineno">  842</span><span class="comment">/* This macro will create a call to a kernel service with a certain result, with a null object and other value as parameter */</span></div>
<div class="line"><a id="l00843" name="l00843"></a><span class="lineno">  843</span><span class="preprocessor">#undef trcKERNEL_HOOKS_KERNEL_SERVICE_NULL_OBJECT_WITH_PARAM_FROM_ISR</span></div>
<div class="line"><a id="l00844" name="l00844"></a><span class="lineno">  844</span><span class="preprocessor">#define trcKERNEL_HOOKS_KERNEL_SERVICE_NULL_OBJECT_WITH_PARAM_FROM_ISR(SERVICE, TRACECLASS, param) \</span></div>
<div class="line"><a id="l00845" name="l00845"></a><span class="lineno">  845</span><span class="preprocessor">    prvTraceStoreKernelCallWithParam(SERVICE, TRACECLASS, 0, param);</span></div>
<div class="line"><a id="l00846" name="l00846"></a><span class="lineno">  846</span> </div>
<div class="line"><a id="l00847" name="l00847"></a><span class="lineno">  847</span><span class="comment">/* This macro will create a call to a kernel service with a certain result, with an object as parameter */</span></div>
<div class="line"><a id="l00848" name="l00848"></a><span class="lineno">  848</span><span class="preprocessor">#undef trcKERNEL_HOOKS_KERNEL_SERVICE_WITH_NUMERIC_PARAM_ONLY_FROM_ISR</span></div>
<div class="line"><a id="l00849" name="l00849"></a><span class="lineno">  849</span><span class="preprocessor">#define trcKERNEL_HOOKS_KERNEL_SERVICE_WITH_NUMERIC_PARAM_ONLY_FROM_ISR(SERVICE, param) \</span></div>
<div class="line"><a id="l00850" name="l00850"></a><span class="lineno">  850</span><span class="preprocessor">    prvTraceStoreKernelCallWithNumericParamOnly(SERVICE, (uint32_t)param);</span></div>
<div class="line"><a id="l00851" name="l00851"></a><span class="lineno">  851</span> </div>
<div class="line"><a id="l00852" name="l00852"></a><span class="lineno">  852</span><span class="comment">/* This macro will set the state for an object */</span></div>
<div class="line"><a id="l00853" name="l00853"></a><span class="lineno">  853</span><span class="preprocessor">#undef trcKERNEL_HOOKS_SET_OBJECT_STATE</span></div>
<div class="line"><a id="l00854" name="l00854"></a><span class="lineno">  854</span><span class="preprocessor">#define trcKERNEL_HOOKS_SET_OBJECT_STATE(CLASS, pxObject, STATE) \</span></div>
<div class="line"><a id="l00855" name="l00855"></a><span class="lineno">  855</span><span class="preprocessor">    prvTraceSetObjectState(TRACE_GET_OBJECT_TRACE_CLASS(CLASS, pxObject), TRACE_GET_OBJECT_NUMBER(CLASS, pxObject), (uint8_t)STATE);</span></div>
<div class="line"><a id="l00856" name="l00856"></a><span class="lineno">  856</span> </div>
<div class="line"><a id="l00857" name="l00857"></a><span class="lineno">  857</span><span class="comment">/* This macro will flag a certain task as a finished instance */</span></div>
<div class="line"><a id="l00858" name="l00858"></a><span class="lineno">  858</span><span class="preprocessor">#undef trcKERNEL_HOOKS_SET_TASK_INSTANCE_FINISHED</span></div>
<div class="line"><a id="l00859" name="l00859"></a><span class="lineno">  859</span><span class="preprocessor">#define trcKERNEL_HOOKS_SET_TASK_INSTANCE_FINISHED() \</span></div>
<div class="line"><a id="l00860" name="l00860"></a><span class="lineno">  860</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(TASK, TRACE_GET_CURRENT_TASK()) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00861" name="l00861"></a><span class="lineno">  861</span><span class="preprocessor">        prvTraceSetTaskInstanceFinished(TRACE_GET_TASK_NUMBER(TRACE_GET_CURRENT_TASK()));</span></div>
<div class="line"><a id="l00862" name="l00862"></a><span class="lineno">  862</span> </div>
<div class="line"><a id="l00863" name="l00863"></a><span class="lineno">  863</span><span class="preprocessor">#if (TRC_CFG_INCLUDE_READY_EVENTS == 1)</span></div>
<div class="line"><a id="l00864" name="l00864"></a><span class="lineno">  864</span><span class="comment">/* This macro will create an event to indicate that a task became Ready */</span></div>
<div class="line"><a id="l00865" name="l00865"></a><span class="lineno">  865</span><span class="preprocessor">#undef trcKERNEL_HOOKS_MOVED_TASK_TO_READY_STATE</span></div>
<div class="line"><a id="l00866" name="l00866"></a><span class="lineno">  866</span><span class="preprocessor">#define trcKERNEL_HOOKS_MOVED_TASK_TO_READY_STATE(pxTCB) \</span></div>
<div class="line"><a id="l00867" name="l00867"></a><span class="lineno">  867</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(TASK, pxTCB) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00868" name="l00868"></a><span class="lineno">  868</span><span class="preprocessor">        prvTraceStoreTaskReady(TRACE_GET_TASK_NUMBER(pxTCB));</span></div>
<div class="line"><a id="l00869" name="l00869"></a><span class="lineno">  869</span><span class="preprocessor">#else </span><span class="comment">/*(TRC_CFG_INCLUDE_READY_EVENTS == 1)*/</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00870" name="l00870"></a><span class="lineno">  870</span><span class="preprocessor">#undef trcKERNEL_HOOKS_MOVED_TASK_TO_READY_STATE</span></div>
<div class="line"><a id="l00871" name="l00871"></a><span class="lineno">  871</span><span class="preprocessor">#define trcKERNEL_HOOKS_MOVED_TASK_TO_READY_STATE(pxTCB)</span></div>
<div class="line"><a id="l00872" name="l00872"></a><span class="lineno">  872</span><span class="preprocessor">#endif </span><span class="comment">/*(TRC_CFG_INCLUDE_READY_EVENTS == 1)*/</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00873" name="l00873"></a><span class="lineno">  873</span> </div>
<div class="line"><a id="l00874" name="l00874"></a><span class="lineno">  874</span><span class="comment">/* This macro will update the internal tick counter and call prvTracePortGetTimeStamp(0) to update the internal counters */</span></div>
<div class="line"><a id="l00875" name="l00875"></a><span class="lineno">  875</span><span class="preprocessor">#undef trcKERNEL_HOOKS_INCREMENT_TICK</span></div>
<div class="line"><a id="l00876" name="l00876"></a><span class="lineno">  876</span><span class="preprocessor">#define trcKERNEL_HOOKS_INCREMENT_TICK() \</span></div>
<div class="line"><a id="l00877" name="l00877"></a><span class="lineno">  877</span><span class="preprocessor">    { \</span></div>
<div class="line"><a id="l00878" name="l00878"></a><span class="lineno">  878</span><span class="preprocessor">        extern uint32_t uiTraceTickCount; \</span></div>
<div class="line"><a id="l00879" name="l00879"></a><span class="lineno">  879</span><span class="preprocessor">        uiTraceTickCount++; \</span></div>
<div class="line"><a id="l00880" name="l00880"></a><span class="lineno">  880</span><span class="preprocessor">        prvTracePortGetTimeStamp(0); \</span></div>
<div class="line"><a id="l00881" name="l00881"></a><span class="lineno">  881</span><span class="preprocessor">    }</span></div>
<div class="line"><a id="l00882" name="l00882"></a><span class="lineno">  882</span> </div>
<div class="line"><a id="l00883" name="l00883"></a><span class="lineno">  883</span><span class="preprocessor">#if (TRC_CFG_INCLUDE_OSTICK_EVENTS == 1)</span></div>
<div class="line"><a id="l00884" name="l00884"></a><span class="lineno">  884</span><span class="comment">/* This macro will create an event indicating that the OS tick count has increased */</span></div>
<div class="line"><a id="l00885" name="l00885"></a><span class="lineno">  885</span><span class="preprocessor">#undef trcKERNEL_HOOKS_NEW_TIME</span></div>
<div class="line"><a id="l00886" name="l00886"></a><span class="lineno">  886</span><span class="preprocessor">#define trcKERNEL_HOOKS_NEW_TIME(SERVICE, xValue) \</span></div>
<div class="line"><a id="l00887" name="l00887"></a><span class="lineno">  887</span><span class="preprocessor">    prvTraceStoreKernelCallWithNumericParamOnly(SERVICE, xValue);</span></div>
<div class="line"><a id="l00888" name="l00888"></a><span class="lineno">  888</span><span class="preprocessor">#else </span><span class="comment">/*(TRC_CFG_INCLUDE_OSTICK_EVENTS == 1)*/</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00889" name="l00889"></a><span class="lineno">  889</span><span class="preprocessor">#undef trcKERNEL_HOOKS_NEW_TIME</span></div>
<div class="line"><a id="l00890" name="l00890"></a><span class="lineno">  890</span><span class="preprocessor">#define trcKERNEL_HOOKS_NEW_TIME(SERVICE, xValue)</span></div>
<div class="line"><a id="l00891" name="l00891"></a><span class="lineno">  891</span><span class="preprocessor">#endif </span><span class="comment">/*(TRC_CFG_INCLUDE_OSTICK_EVENTS == 1)*/</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00892" name="l00892"></a><span class="lineno">  892</span> </div>
<div class="line"><a id="l00893" name="l00893"></a><span class="lineno">  893</span><span class="comment">/* This macro will create a task switch event to the currently executing task */</span></div>
<div class="line"><a id="l00894" name="l00894"></a><span class="lineno">  894</span><span class="preprocessor">#undef trcKERNEL_HOOKS_TASK_SWITCH</span></div>
<div class="line"><a id="l00895" name="l00895"></a><span class="lineno">  895</span><span class="preprocessor">#define trcKERNEL_HOOKS_TASK_SWITCH( pxTCB ) \</span></div>
<div class="line"><a id="l00896" name="l00896"></a><span class="lineno">  896</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(TASK, pxTCB) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00897" name="l00897"></a><span class="lineno">  897</span><span class="preprocessor">        prvTraceStoreTaskswitch(TRACE_GET_TASK_NUMBER(pxTCB));</span></div>
<div class="line"><a id="l00898" name="l00898"></a><span class="lineno">  898</span> </div>
<div class="line"><a id="l00899" name="l00899"></a><span class="lineno">  899</span><span class="comment">/* This macro will create an event to indicate that the task has been suspended */</span></div>
<div class="line"><a id="l00900" name="l00900"></a><span class="lineno">  900</span><span class="preprocessor">#undef trcKERNEL_HOOKS_TASK_SUSPEND</span></div>
<div class="line"><a id="l00901" name="l00901"></a><span class="lineno">  901</span><span class="preprocessor">#define trcKERNEL_HOOKS_TASK_SUSPEND(SERVICE, pxTCB) \</span></div>
<div class="line"><a id="l00902" name="l00902"></a><span class="lineno">  902</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(TASK, TRACE_GET_CURRENT_TASK()) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00903" name="l00903"></a><span class="lineno">  903</span><span class="preprocessor">        if (TRACE_GET_OBJECT_FILTER(TASK, pxTCB) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00904" name="l00904"></a><span class="lineno">  904</span><span class="preprocessor">            prvTraceStoreKernelCall(SERVICE, TRACE_CLASS_TASK, TRACE_GET_TASK_NUMBER(pxTCB)); \</span></div>
<div class="line"><a id="l00905" name="l00905"></a><span class="lineno">  905</span><span class="preprocessor">    prvTraceSetTaskInstanceFinished((uint8_t)TRACE_GET_TASK_NUMBER(pxTCB));</span></div>
<div class="line"><a id="l00906" name="l00906"></a><span class="lineno">  906</span> </div>
<div class="line"><a id="l00907" name="l00907"></a><span class="lineno">  907</span><span class="comment">/* This macro will create an event to indicate that a task has called a wait/delay function */</span></div>
<div class="line"><a id="l00908" name="l00908"></a><span class="lineno">  908</span><span class="preprocessor">#undef trcKERNEL_HOOKS_TASK_DELAY</span></div>
<div class="line"><a id="l00909" name="l00909"></a><span class="lineno">  909</span><span class="preprocessor">#define trcKERNEL_HOOKS_TASK_DELAY(SERVICE, pxTCB, xValue) \</span></div>
<div class="line"><a id="l00910" name="l00910"></a><span class="lineno">  910</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(TASK, pxTCB) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00911" name="l00911"></a><span class="lineno">  911</span><span class="preprocessor">    { \</span></div>
<div class="line"><a id="l00912" name="l00912"></a><span class="lineno">  912</span><span class="preprocessor">        prvTraceStoreKernelCallWithNumericParamOnly(SERVICE, xValue); \</span></div>
<div class="line"><a id="l00913" name="l00913"></a><span class="lineno">  913</span><span class="preprocessor">        prvTraceSetTaskInstanceFinished((uint8_t)TRACE_GET_TASK_NUMBER(pxTCB)); \</span></div>
<div class="line"><a id="l00914" name="l00914"></a><span class="lineno">  914</span><span class="preprocessor">    }</span></div>
<div class="line"><a id="l00915" name="l00915"></a><span class="lineno">  915</span> </div>
<div class="line"><a id="l00916" name="l00916"></a><span class="lineno">  916</span><span class="comment">/* This macro will create an event to indicate that a task has gotten its priority changed */</span></div>
<div class="line"><a id="l00917" name="l00917"></a><span class="lineno">  917</span><span class="preprocessor">#undef trcKERNEL_HOOKS_TASK_PRIORITY_CHANGE</span></div>
<div class="line"><a id="l00918" name="l00918"></a><span class="lineno">  918</span><span class="preprocessor">#define trcKERNEL_HOOKS_TASK_PRIORITY_CHANGE(SERVICE, pxTCB, uxNewPriority) \</span></div>
<div class="line"><a id="l00919" name="l00919"></a><span class="lineno">  919</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(TASK, pxTCB) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00920" name="l00920"></a><span class="lineno">  920</span><span class="preprocessor">    { \</span></div>
<div class="line"><a id="l00921" name="l00921"></a><span class="lineno">  921</span><span class="preprocessor">        prvTraceStoreKernelCallWithParam(SERVICE, TRACE_CLASS_TASK, TRACE_GET_TASK_NUMBER(pxTCB), prvTraceGetPriorityProperty(TRACE_CLASS_TASK, TRACE_GET_TASK_NUMBER(pxTCB)));\</span></div>
<div class="line"><a id="l00922" name="l00922"></a><span class="lineno">  922</span><span class="preprocessor">        prvTraceSetPriorityProperty(TRACE_CLASS_TASK, TRACE_GET_TASK_NUMBER(pxTCB), (uint8_t)uxNewPriority); \</span></div>
<div class="line"><a id="l00923" name="l00923"></a><span class="lineno">  923</span><span class="preprocessor">    }</span></div>
<div class="line"><a id="l00924" name="l00924"></a><span class="lineno">  924</span> </div>
<div class="line"><a id="l00925" name="l00925"></a><span class="lineno">  925</span><span class="comment">/* This macro will create an event to indicate that the task has been resumed */</span></div>
<div class="line"><a id="l00926" name="l00926"></a><span class="lineno">  926</span><span class="preprocessor">#undef trcKERNEL_HOOKS_TASK_RESUME</span></div>
<div class="line"><a id="l00927" name="l00927"></a><span class="lineno">  927</span><span class="preprocessor">#define trcKERNEL_HOOKS_TASK_RESUME(SERVICE, pxTCB) \</span></div>
<div class="line"><a id="l00928" name="l00928"></a><span class="lineno">  928</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(TASK, TRACE_GET_CURRENT_TASK()) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00929" name="l00929"></a><span class="lineno">  929</span><span class="preprocessor">        if (TRACE_GET_OBJECT_FILTER(TASK, pxTCB) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00930" name="l00930"></a><span class="lineno">  930</span><span class="preprocessor">            prvTraceStoreKernelCall(SERVICE, TRACE_CLASS_TASK, TRACE_GET_TASK_NUMBER(pxTCB));</span></div>
<div class="line"><a id="l00931" name="l00931"></a><span class="lineno">  931</span> </div>
<div class="line"><a id="l00932" name="l00932"></a><span class="lineno">  932</span><span class="comment">/* This macro will create an event to indicate that the task has been resumed from ISR */</span></div>
<div class="line"><a id="l00933" name="l00933"></a><span class="lineno">  933</span><span class="preprocessor">#undef trcKERNEL_HOOKS_TASK_RESUME_FROM_ISR</span></div>
<div class="line"><a id="l00934" name="l00934"></a><span class="lineno">  934</span><span class="preprocessor">#define trcKERNEL_HOOKS_TASK_RESUME_FROM_ISR(SERVICE, pxTCB) \</span></div>
<div class="line"><a id="l00935" name="l00935"></a><span class="lineno">  935</span><span class="preprocessor">    if (TRACE_GET_OBJECT_FILTER(TASK, pxTCB) &amp; CurrentFilterMask) \</span></div>
<div class="line"><a id="l00936" name="l00936"></a><span class="lineno">  936</span><span class="preprocessor">        prvTraceStoreKernelCall(SERVICE, TRACE_CLASS_TASK, TRACE_GET_TASK_NUMBER(pxTCB));</span></div>
<div class="line"><a id="l00937" name="l00937"></a><span class="lineno">  937</span> </div>
<div class="line"><a id="l00938" name="l00938"></a><span class="lineno">  938</span><span class="preprocessor">#if !defined TRC_CFG_INCLUDE_READY_EVENTS || TRC_CFG_INCLUDE_READY_EVENTS == 1</span></div>
<div class="line"><a id="l00944" name="l00944"></a><span class="lineno">  944</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#ac0e6e943899c820592887e23ec907f49">prvTraceSetReadyEventsEnabled</a>(uint32_t flag);</div>
<div class="line"><a id="l00945" name="l00945"></a><span class="lineno">  945</span> </div>
<div class="line"><a id="l00951" name="l00951"></a><span class="lineno">  951</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#abe8587ed483787a0c372b8bb17076f61">prvTraceStoreTaskReady</a>(traceHandle handle);</div>
<div class="line"><a id="l00952" name="l00952"></a><span class="lineno">  952</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00953" name="l00953"></a><span class="lineno">  953</span><span class="preprocessor">#define prvTraceSetReadyEventsEnabled(status) (void)status;</span></div>
<div class="line"><a id="l00954" name="l00954"></a><span class="lineno">  954</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00955" name="l00955"></a><span class="lineno">  955</span> </div>
<div class="line"><a id="l00961" name="l00961"></a><span class="lineno">  961</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#aca15d85007f5a7172dba6ed8b61a6bda">prvTraceStoreLowPower</a>(uint32_t flag);</div>
<div class="line"><a id="l00962" name="l00962"></a><span class="lineno">  962</span> </div>
<div class="line"><a id="l00968" name="l00968"></a><span class="lineno">  968</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#aa21cb18b5c3f0c46d33e43ef1425427b">prvTraceStoreTaskswitch</a>(traceHandle task_handle);</div>
<div class="line"><a id="l00969" name="l00969"></a><span class="lineno">  969</span> </div>
<div class="line"><a id="l00970" name="l00970"></a><span class="lineno">  970</span><span class="preprocessor">#if (TRC_CFG_SCHEDULING_ONLY == 0)</span></div>
<div class="line"><a id="l00971" name="l00971"></a><span class="lineno">  971</span> </div>
<div class="line"><a id="l00979" name="l00979"></a><span class="lineno">  979</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#aa73a8410deee18065299362b64620d79">prvTraceStoreKernelCall</a>(uint32_t eventcode, traceObjectClass objectClass, uint32_t objectNumber);</div>
<div class="line"><a id="l00980" name="l00980"></a><span class="lineno">  980</span> </div>
<div class="line"><a id="l00987" name="l00987"></a><span class="lineno">  987</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#ae63a278e4436542930f5a33898387209">prvTraceStoreKernelCallWithNumericParamOnly</a>(uint32_t evtcode, uint32_t param);</div>
<div class="line"><a id="l00988" name="l00988"></a><span class="lineno">  988</span> </div>
<div class="line"><a id="l00997" name="l00997"></a><span class="lineno">  997</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#afc81d827c015a145b13333933a31f7d6">prvTraceStoreKernelCallWithParam</a>(uint32_t evtcode, traceObjectClass objectClass,</div>
<div class="line"><a id="l00998" name="l00998"></a><span class="lineno">  998</span>                                    uint32_t objectNumber, uint32_t param);</div>
<div class="line"><a id="l00999" name="l00999"></a><span class="lineno">  999</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l01000" name="l01000"></a><span class="lineno"> 1000</span> </div>
<div class="line"><a id="l01001" name="l01001"></a><span class="lineno"> 1001</span><span class="preprocessor">#define prvTraceStoreKernelCall(eventcode, objectClass, byteParam) {}</span></div>
<div class="line"><a id="l01002" name="l01002"></a><span class="lineno"> 1002</span><span class="preprocessor">#define prvTraceStoreKernelCallWithNumericParamOnly(evtcode, param) {}</span></div>
<div class="line"><a id="l01003" name="l01003"></a><span class="lineno"> 1003</span><span class="preprocessor">#define prvTraceStoreKernelCallWithParam(evtcode, objectClass, objectNumber, param) {}</span></div>
<div class="line"><a id="l01004" name="l01004"></a><span class="lineno"> 1004</span> </div>
<div class="line"><a id="l01005" name="l01005"></a><span class="lineno"> 1005</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l01006" name="l01006"></a><span class="lineno"> 1006</span> </div>
<div class="line"><a id="l01012" name="l01012"></a><span class="lineno"> 1012</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#a0a99f73c4b615dd1b9f1176457969510">prvTraceSetTaskInstanceFinished</a>(traceHandle handle);</div>
<div class="line"><a id="l01013" name="l01013"></a><span class="lineno"> 1013</span> </div>
<div class="line"><a id="l01021" name="l01021"></a><span class="lineno"> 1021</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#a81554165bf93ae937cd351d805af2d23">prvTraceSetPriorityProperty</a>(uint8_t objectclass, traceHandle <span class="keywordtype">id</span>, uint8_t value);</div>
<div class="line"><a id="l01022" name="l01022"></a><span class="lineno"> 1022</span> </div>
<div class="line"><a id="l01031" name="l01031"></a><span class="lineno"> 1031</span>uint8_t <a class="code hl_function" href="trcRecorder_8h.html#af01cd6e240a45aa251b1e344bb8bde1b">prvTraceGetPriorityProperty</a>(uint8_t objectclass, traceHandle <span class="keywordtype">id</span>);</div>
<div class="line"><a id="l01032" name="l01032"></a><span class="lineno"> 1032</span> </div>
<div class="line"><a id="l01040" name="l01040"></a><span class="lineno"> 1040</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#a9aaff74096a29ec70283d99001afc11b">prvTraceSetObjectState</a>(uint8_t objectclass, traceHandle <span class="keywordtype">id</span>, uint8_t value);</div>
<div class="line"><a id="l01041" name="l01041"></a><span class="lineno"> 1041</span> </div>
<div class="line"><a id="l01048" name="l01048"></a><span class="lineno"> 1048</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#ae8ed2db2fbdca3b033e308cfbdcf6a4c">prvMarkObjectAsUsed</a>(traceObjectClass objectclass, traceHandle handle);</div>
<div class="line"><a id="l01049" name="l01049"></a><span class="lineno"> 1049</span> </div>
<div class="line"><a id="l01057" name="l01057"></a><span class="lineno"> 1057</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#a53b3131f5fb7c6c23629d2d472d80655">prvTraceStoreObjectNameOnCloseEvent</a>(uint8_t evtcode, traceHandle handle,</div>
<div class="line"><a id="l01058" name="l01058"></a><span class="lineno"> 1058</span>                                        traceObjectClass objectclass);</div>
<div class="line"><a id="l01059" name="l01059"></a><span class="lineno"> 1059</span> </div>
<div class="line"><a id="l01067" name="l01067"></a><span class="lineno"> 1067</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#ab4e0c3e0a12b29cb6eb57a4a807864f4">prvTraceStoreObjectPropertiesOnCloseEvent</a>(uint8_t evtcode, traceHandle handle,</div>
<div class="line"><a id="l01068" name="l01068"></a><span class="lineno"> 1068</span>                                             traceObjectClass objectclass);</div>
<div class="line"><a id="l01069" name="l01069"></a><span class="lineno"> 1069</span> </div>
<div class="line"><a id="l01070" name="l01070"></a><span class="lineno"> 1070</span><span class="comment">/* Internal constants for task state */</span></div>
<div class="line"><a id="l01071" name="l01071"></a><span class="lineno"> 1071</span><span class="preprocessor">#define TASK_STATE_INSTANCE_NOT_ACTIVE 0</span></div>
<div class="line"><a id="l01072" name="l01072"></a><span class="lineno"> 1072</span><span class="preprocessor">#define TASK_STATE_INSTANCE_ACTIVE 1</span></div>
<div class="line"><a id="l01073" name="l01073"></a><span class="lineno"> 1073</span> </div>
<div class="line"><a id="l01074" name="l01074"></a><span class="lineno"> 1074</span> </div>
<div class="line"><a id="l01075" name="l01075"></a><span class="lineno"> 1075</span><span class="preprocessor">#if (TRC_CFG_INCLUDE_ISR_TRACING == 0)</span></div>
<div class="line"><a id="l01076" name="l01076"></a><span class="lineno"> 1076</span> </div>
<div class="line"><a id="l01077" name="l01077"></a><span class="lineno"> 1077</span><span class="preprocessor">#undef vTraceSetISRProperties</span></div>
<div class="line"><a id="l01078" name="l01078"></a><span class="lineno"> 1078</span><span class="preprocessor">#define vTraceSetISRProperties(handle, name, priority) (void)(handle), (void)(name), (void)(priority) </span><span class="comment">/* Comma operator is used to avoid &quot;unused variable&quot; compiler warnings in a single statement */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01079" name="l01079"></a><span class="lineno"> 1079</span> </div>
<div class="line"><a id="l01080" name="l01080"></a><span class="lineno"> 1080</span><span class="preprocessor">#undef vTraceStoreISRBegin</span></div>
<div class="line"><a id="l01081" name="l01081"></a><span class="lineno"> 1081</span><span class="preprocessor">#define vTraceStoreISRBegin(x) (void)(x)</span></div>
<div class="line"><a id="l01082" name="l01082"></a><span class="lineno"> 1082</span> </div>
<div class="line"><a id="l01083" name="l01083"></a><span class="lineno"> 1083</span><span class="preprocessor">#undef vTraceStoreISREnd</span></div>
<div class="line"><a id="l01084" name="l01084"></a><span class="lineno"> 1084</span><span class="preprocessor">#define vTraceStoreISREnd(x) (void)(x)</span></div>
<div class="line"><a id="l01085" name="l01085"></a><span class="lineno"> 1085</span> </div>
<div class="line"><a id="l01086" name="l01086"></a><span class="lineno"> 1086</span><span class="preprocessor">#undef xTraceSetISRProperties</span></div>
<div class="line"><a id="l01087" name="l01087"></a><span class="lineno"> 1087</span><span class="preprocessor">#define xTraceSetISRProperties(name, priority) ((void)(name), (void)(priority), (traceHandle)0) </span><span class="comment">/* Comma operator in parenthesis is used to avoid &quot;unused variable&quot; compiler warnings and return 0 in a single statement */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01088" name="l01088"></a><span class="lineno"> 1088</span> </div>
<div class="line"><a id="l01089" name="l01089"></a><span class="lineno"> 1089</span><span class="preprocessor">#endif </span><span class="comment">/*(TRC_CFG_INCLUDE_ISR_TRACING == 0)*/</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01090" name="l01090"></a><span class="lineno"> 1090</span> </div>
<div class="line"><a id="l01101" name="l01101"></a><span class="lineno"> 1101</span><span class="keywordtype">void</span>* <a class="code hl_function" href="trcRecorder_8h.html#a376825a7b6d85ac515de47b0dcdb0c40">xTraceGetTraceBuffer</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l01102" name="l01102"></a><span class="lineno"> 1102</span> </div>
<div class="line"><a id="l01112" name="l01112"></a><span class="lineno"> 1112</span>uint32_t <a class="code hl_function" href="trcRecorder_8h.html#a09709a126202d06f02c9bb390dde9530">uiTraceGetTraceBufferSize</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l01113" name="l01113"></a><span class="lineno"> 1113</span> </div>
<div class="line"><a id="l01114" name="l01114"></a><span class="lineno"> 1114</span><span class="preprocessor">#if (TRC_CFG_SCHEDULING_ONLY == 1)</span></div>
<div class="line"><a id="l01115" name="l01115"></a><span class="lineno"> 1115</span><span class="preprocessor">#undef TRC_CFG_INCLUDE_USER_EVENTS</span></div>
<div class="line"><a id="l01116" name="l01116"></a><span class="lineno"> 1116</span><span class="preprocessor">#define TRC_CFG_INCLUDE_USER_EVENTS 0</span></div>
<div class="line"><a id="l01117" name="l01117"></a><span class="lineno"> 1117</span><span class="preprocessor">#endif </span><span class="comment">/*(TRC_CFG_SCHEDULING_ONLY == 1)*/</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01118" name="l01118"></a><span class="lineno"> 1118</span> </div>
<div class="line"><a id="l01119" name="l01119"></a><span class="lineno"> 1119</span><span class="preprocessor">#if ((TRC_CFG_INCLUDE_USER_EVENTS == 1) &amp;&amp; (TRC_CFG_SCHEDULING_ONLY == 0)) &amp;&amp; (TRC_CFG_USE_SEPARATE_USER_EVENT_BUFFER == 1)</span></div>
<div class="line"><a id="l01120" name="l01120"></a><span class="lineno"> 1120</span> </div>
<div class="line"><a id="l01129" name="l01129"></a><span class="lineno"> 1129</span>traceUBChannel xTraceRegisterUBChannel(TraceStringHandle_t channel, TraceStringHandle_t formatStr);</div>
<div class="line"><a id="l01130" name="l01130"></a><span class="lineno"> 1130</span> </div>
<div class="line"><a id="l01137" name="l01137"></a><span class="lineno"> 1137</span><span class="keywordtype">void</span> vTraceUBData(traceUBChannel channel, ...);</div>
<div class="line"><a id="l01138" name="l01138"></a><span class="lineno"> 1138</span> </div>
<div class="line"><a id="l01144" name="l01144"></a><span class="lineno"> 1144</span><span class="keywordtype">void</span> vTraceUBEvent(traceUBChannel channel);</div>
<div class="line"><a id="l01145" name="l01145"></a><span class="lineno"> 1145</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l01146" name="l01146"></a><span class="lineno"> 1146</span><span class="preprocessor">#define xTraceRegisterChannelFormat(eventLabel, formatStr) ((void)(eventLabel), (void)(formatStr), 0)</span></div>
<div class="line"><a id="l01147" name="l01147"></a><span class="lineno"> 1147</span><span class="preprocessor">#define vTraceUBData(label, ...) (void)(label)</span></div>
<div class="line"><a id="l01148" name="l01148"></a><span class="lineno"> 1148</span><span class="preprocessor">#endif </span><span class="comment">/*(TRC_CFG_USE_SEPARATE_USER_EVENT_BUFFER == 1)*/</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01149" name="l01149"></a><span class="lineno"> 1149</span> </div>
<div class="line"><a id="l01150" name="l01150"></a><span class="lineno"> 1150</span><span class="preprocessor">#define NEventCodes 0x100</span></div>
<div class="line"><a id="l01151" name="l01151"></a><span class="lineno"> 1151</span> </div>
<div class="line"><a id="l01152" name="l01152"></a><span class="lineno"> 1152</span><span class="comment">/* Our local critical sections for the recorder */</span></div>
<div class="line"><a id="l01153" name="l01153"></a><span class="lineno"> 1153</span><span class="preprocessor">#define trcCRITICAL_SECTION_BEGIN() {TRACE_ENTER_CRITICAL_SECTION(); recorder_busy++;}</span></div>
<div class="line"><a id="l01154" name="l01154"></a><span class="lineno"> 1154</span><span class="preprocessor">#define trcCRITICAL_SECTION_END() {recorder_busy--; TRACE_EXIT_CRITICAL_SECTION();}</span></div>
<div class="line"><a id="l01155" name="l01155"></a><span class="lineno"> 1155</span> </div>
<div class="line"><a id="l01156" name="l01156"></a><span class="lineno"> 1156</span><span class="preprocessor">#if (TRC_CFG_HARDWARE_PORT == TRC_HARDWARE_PORT_ARM_Cortex_M)</span></div>
<div class="line"><a id="l01157" name="l01157"></a><span class="lineno"> 1157</span><span class="preprocessor">    #define trcSR_ALLOC_CRITICAL_SECTION_ON_CORTEX_M_ONLY TRACE_ALLOC_CRITICAL_SECTION</span></div>
<div class="line"><a id="l01158" name="l01158"></a><span class="lineno"> 1158</span><span class="preprocessor">    #define trcCRITICAL_SECTION_BEGIN_ON_CORTEX_M_ONLY trcCRITICAL_SECTION_BEGIN</span></div>
<div class="line"><a id="l01159" name="l01159"></a><span class="lineno"> 1159</span><span class="preprocessor">    #define trcCRITICAL_SECTION_END_ON_CORTEX_M_ONLY trcCRITICAL_SECTION_END</span></div>
<div class="line"><a id="l01160" name="l01160"></a><span class="lineno"> 1160</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l01161" name="l01161"></a><span class="lineno"> 1161</span><span class="preprocessor">    #define trcSR_ALLOC_CRITICAL_SECTION_ON_CORTEX_M_ONLY() {}</span></div>
<div class="line"><a id="l01162" name="l01162"></a><span class="lineno"> 1162</span><span class="preprocessor">    #define trcCRITICAL_SECTION_BEGIN_ON_CORTEX_M_ONLY() recorder_busy++;</span></div>
<div class="line"><a id="l01163" name="l01163"></a><span class="lineno"> 1163</span><span class="preprocessor">    #define trcCRITICAL_SECTION_END_ON_CORTEX_M_ONLY() recorder_busy--;</span></div>
<div class="line"><a id="l01164" name="l01164"></a><span class="lineno"> 1164</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l01165" name="l01165"></a><span class="lineno"> 1165</span> </div>
<div class="line"><a id="l01190" name="l01190"></a><span class="lineno"><a class="line" href="structobjectHandleStackType.html"> 1190</a></span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01191" name="l01191"></a><span class="lineno"> 1191</span>{</div>
<div class="line"><a id="l01192" name="l01192"></a><span class="lineno"><a class="line" href="structobjectHandleStackType.html#a194dc7a274404a898c2858c761cb1b79"> 1192</a></span>    uint16_t indexOfNextAvailableHandle[ TRACE_NCLASSES ]; </div>
<div class="line"><a id="l01193" name="l01193"></a><span class="lineno"><a class="line" href="structobjectHandleStackType.html#a165dd3475f5cd974af60a9aeef60195c"> 1193</a></span>    uint16_t lowestIndexOfClass[ TRACE_NCLASSES ]; </div>
<div class="line"><a id="l01194" name="l01194"></a><span class="lineno"><a class="line" href="structobjectHandleStackType.html#ae16024733ead6b5f2fe0230f58183feb"> 1194</a></span>    uint16_t highestIndexOfClass[ TRACE_NCLASSES ]; </div>
<div class="line"><a id="l01195" name="l01195"></a><span class="lineno"><a class="line" href="structobjectHandleStackType.html#af6dce836de4bd16eb2227b9476fbf99b"> 1195</a></span>    uint16_t handleCountWaterMarksOfClass[ TRACE_NCLASSES ]; </div>
<div class="line"><a id="l01196" name="l01196"></a><span class="lineno"><a class="line" href="structobjectHandleStackType.html#a6eab3d32f0fd8af657b9173968d1e57f"> 1196</a></span>    traceHandle objectHandles[ TRACE_KERNEL_OBJECT_COUNT ]; </div>
<div class="line"><a id="l01197" name="l01197"></a><span class="lineno"> 1197</span>} <a class="code hl_struct" href="structobjectHandleStackType.html">objectHandleStackType</a>;</div>
<div class="line"><a id="l01198" name="l01198"></a><span class="lineno"> 1198</span> </div>
<div class="line"><a id="l01199" name="l01199"></a><span class="lineno"> 1199</span><span class="keyword">extern</span> <a class="code hl_struct" href="structobjectHandleStackType.html">objectHandleStackType</a> objectHandleStacks;</div>
<div class="line"><a id="l01200" name="l01200"></a><span class="lineno"> 1200</span> </div>
<div class="line"><a id="l01218" name="l01218"></a><span class="lineno"><a class="line" href="structObjectPropertyTableType.html"> 1218</a></span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01219" name="l01219"></a><span class="lineno"> 1219</span>{</div>
<div class="line"><a id="l01220" name="l01220"></a><span class="lineno"> 1220</span>    <span class="comment">/* = NCLASSES */</span></div>
<div class="line"><a id="l01221" name="l01221"></a><span class="lineno"> 1221</span>    uint32_t NumberOfObjectClasses; </div>
<div class="line"><a id="l01222" name="l01222"></a><span class="lineno"> 1222</span>    uint32_t ObjectPropertyTableSizeInBytes; </div>
<div class="line"><a id="l01224" name="l01224"></a><span class="lineno"> 1224</span>    <span class="comment">/* This is used to calculate the index in the dynamic object table</span></div>
<div class="line"><a id="l01225" name="l01225"></a><span class="lineno"> 1225</span><span class="comment">    (handle - 1 - nofStaticObjects = index)*/</span></div>
<div class="line"><a id="l01226" name="l01226"></a><span class="lineno"> 1226</span><span class="preprocessor">#if (TRC_CFG_USE_16BIT_OBJECT_HANDLES == 1)</span></div>
<div class="line"><a id="l01227" name="l01227"></a><span class="lineno"> 1227</span>    traceHandle NumberOfObjectsPerClass[2*((TRACE_NCLASSES+1)/2)]; </div>
<div class="line"><a id="l01228" name="l01228"></a><span class="lineno"> 1228</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l01229" name="l01229"></a><span class="lineno"> 1229</span>    traceHandle NumberOfObjectsPerClass[4*((TRACE_NCLASSES+3)/4)]; </div>
<div class="line"><a id="l01230" name="l01230"></a><span class="lineno"> 1230</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l01231" name="l01231"></a><span class="lineno"> 1231</span>    <span class="comment">/* Allocation size rounded up to the closest multiple of 4 */</span></div>
<div class="line"><a id="l01232" name="l01232"></a><span class="lineno"> 1232</span>    uint8_t NameLengthPerClass[ 4*((TRACE_NCLASSES+3)/4) ]; </div>
<div class="line"><a id="l01234" name="l01234"></a><span class="lineno"> 1234</span>    <span class="comment">/* Allocation size rounded up to the closest multiple of 2 */</span></div>
<div class="line"><a id="l01235" name="l01235"></a><span class="lineno"> 1235</span>    uint8_t TotalPropertyBytesPerClass[ 4*((TRACE_NCLASSES+3)/4) ]; </div>
<div class="line"><a id="l01237" name="l01237"></a><span class="lineno"> 1237</span>    <span class="comment">/* */</span></div>
<div class="line"><a id="l01238" name="l01238"></a><span class="lineno"> 1238</span>    uint16_t StartIndexOfClass[ 2*((TRACE_NCLASSES+1)/2) ]; </div>
<div class="line"><a id="l01240" name="l01240"></a><span class="lineno"> 1240</span>    <span class="comment">/* The actual handles issued, should be Initiated to all zeros */</span></div>
<div class="line"><a id="l01241" name="l01241"></a><span class="lineno"> 1241</span>    uint8_t objbytes[ 4*((TRACE_OBJECT_TABLE_SIZE+3)/4) ]; </div>
<div class="line"><a id="l01242" name="l01242"></a><span class="lineno"> 1242</span>} <a class="code hl_struct" href="structObjectPropertyTableType.html">ObjectPropertyTableType</a>;</div>
<div class="line"><a id="l01243" name="l01243"></a><span class="lineno"> 1243</span> </div>
<div class="line"><a id="l01247" name="l01247"></a><span class="lineno"><a class="line" href="structsymbolTableType.html"> 1247</a></span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01248" name="l01248"></a><span class="lineno"> 1248</span>{</div>
<div class="line"><a id="l01249" name="l01249"></a><span class="lineno"> 1249</span>    <span class="comment">/* = SYMBOL_HISTORY_TABLE_SIZE_IN_BYTES */</span></div>
<div class="line"><a id="l01250" name="l01250"></a><span class="lineno"> 1250</span>    uint32_t symTableSize; </div>
<div class="line"><a id="l01252" name="l01252"></a><span class="lineno"> 1252</span>    <span class="comment">/* Entry 0 is reserved. Any reference to entry 0 implies NULL*/</span></div>
<div class="line"><a id="l01253" name="l01253"></a><span class="lineno"> 1253</span>    uint32_t nextFreeSymbolIndex; </div>
<div class="line"><a id="l01255" name="l01255"></a><span class="lineno"> 1255</span>    <span class="comment">/* Size rounded up to closest multiple of 4, to avoid alignment issues*/</span></div>
<div class="line"><a id="l01256" name="l01256"></a><span class="lineno"> 1256</span>    uint8_t symbytes[4*(((TRC_CFG_SYMBOL_TABLE_SIZE)+3)/4)]; </div>
<div class="line"><a id="l01258" name="l01258"></a><span class="lineno"> 1258</span>    <span class="comment">/* Used for lookups - Up to 64 linked lists within the symbol table</span></div>
<div class="line"><a id="l01259" name="l01259"></a><span class="lineno"> 1259</span><span class="comment">    connecting all entries with the same 6 bit checksum.</span></div>
<div class="line"><a id="l01260" name="l01260"></a><span class="lineno"> 1260</span><span class="comment">    This field holds the current list heads. Should be initiated to zeros */</span></div>
<div class="line"><a id="l01261" name="l01261"></a><span class="lineno"> 1261</span>    uint16_t latestEntryOfChecksum[64]; </div>
<div class="line"><a id="l01262" name="l01262"></a><span class="lineno"> 1262</span>} <a class="code hl_struct" href="structsymbolTableType.html">symbolTableType</a>;</div>
<div class="line"><a id="l01263" name="l01263"></a><span class="lineno"> 1263</span> </div>
<div class="line"><a id="l01264" name="l01264"></a><span class="lineno"> 1264</span> </div>
<div class="line"><a id="l01265" name="l01265"></a><span class="lineno"> 1265</span><span class="comment">/*******************************************************************************</span></div>
<div class="line"><a id="l01266" name="l01266"></a><span class="lineno"> 1266</span><span class="comment"> * The data structures of the different events, all 4 bytes long</span></div>
<div class="line"><a id="l01267" name="l01267"></a><span class="lineno"> 1267</span><span class="comment"> ******************************************************************************/</span></div>
<div class="line"><a id="l01268" name="l01268"></a><span class="lineno"> 1268</span> </div>
<div class="line"><a id="l01269" name="l01269"></a><span class="lineno"> 1269</span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01270" name="l01270"></a><span class="lineno"> 1270</span>{</div>
<div class="line"><a id="l01271" name="l01271"></a><span class="lineno"> 1271</span>    uint8_t type;</div>
<div class="line"><a id="l01272" name="l01272"></a><span class="lineno"> 1272</span>    uint8_t objHandle;</div>
<div class="line"><a id="l01273" name="l01273"></a><span class="lineno"> 1273</span>    uint16_t dts;   <span class="comment">/* differential timestamp - time since last event */</span></div>
<div class="line"><a id="l01274" name="l01274"></a><span class="lineno"> 1274</span>} TSEvent, TREvent;</div>
<div class="line"><a id="l01275" name="l01275"></a><span class="lineno"> 1275</span> </div>
<div class="line"><a id="l01276" name="l01276"></a><span class="lineno"> 1276</span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01277" name="l01277"></a><span class="lineno"> 1277</span>{</div>
<div class="line"><a id="l01278" name="l01278"></a><span class="lineno"> 1278</span>    uint8_t type;</div>
<div class="line"><a id="l01279" name="l01279"></a><span class="lineno"> 1279</span>    uint8_t dummy;</div>
<div class="line"><a id="l01280" name="l01280"></a><span class="lineno"> 1280</span>    uint16_t dts;   <span class="comment">/* differential timestamp - time since last event */</span></div>
<div class="line"><a id="l01281" name="l01281"></a><span class="lineno"> 1281</span>} LPEvent;</div>
<div class="line"><a id="l01282" name="l01282"></a><span class="lineno"> 1282</span> </div>
<div class="line"><a id="l01283" name="l01283"></a><span class="lineno"> 1283</span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01284" name="l01284"></a><span class="lineno"> 1284</span>{</div>
<div class="line"><a id="l01285" name="l01285"></a><span class="lineno"> 1285</span>    uint8_t type;</div>
<div class="line"><a id="l01286" name="l01286"></a><span class="lineno"> 1286</span>    uint8_t objHandle;</div>
<div class="line"><a id="l01287" name="l01287"></a><span class="lineno"> 1287</span>    uint16_t dts;   <span class="comment">/* differential timestamp - time since last event */</span></div>
<div class="line"><a id="l01288" name="l01288"></a><span class="lineno"> 1288</span>} KernelCall;</div>
<div class="line"><a id="l01289" name="l01289"></a><span class="lineno"> 1289</span> </div>
<div class="line"><a id="l01290" name="l01290"></a><span class="lineno"> 1290</span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01291" name="l01291"></a><span class="lineno"> 1291</span>{</div>
<div class="line"><a id="l01292" name="l01292"></a><span class="lineno"> 1292</span>    uint8_t type;</div>
<div class="line"><a id="l01293" name="l01293"></a><span class="lineno"> 1293</span>    uint8_t objHandle;</div>
<div class="line"><a id="l01294" name="l01294"></a><span class="lineno"> 1294</span>    uint8_t param;</div>
<div class="line"><a id="l01295" name="l01295"></a><span class="lineno"> 1295</span>    uint8_t dts;    <span class="comment">/* differential timestamp - time since last event */</span></div>
<div class="line"><a id="l01296" name="l01296"></a><span class="lineno"> 1296</span>} KernelCallWithParamAndHandle;</div>
<div class="line"><a id="l01297" name="l01297"></a><span class="lineno"> 1297</span> </div>
<div class="line"><a id="l01298" name="l01298"></a><span class="lineno"> 1298</span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01299" name="l01299"></a><span class="lineno"> 1299</span>{</div>
<div class="line"><a id="l01300" name="l01300"></a><span class="lineno"> 1300</span>    uint8_t type;</div>
<div class="line"><a id="l01301" name="l01301"></a><span class="lineno"> 1301</span>    uint8_t dts;    <span class="comment">/* differential timestamp - time since last event */</span></div>
<div class="line"><a id="l01302" name="l01302"></a><span class="lineno"> 1302</span>    uint16_t param;</div>
<div class="line"><a id="l01303" name="l01303"></a><span class="lineno"> 1303</span>} KernelCallWithParam16;</div>
<div class="line"><a id="l01304" name="l01304"></a><span class="lineno"> 1304</span> </div>
<div class="line"><a id="l01305" name="l01305"></a><span class="lineno"> 1305</span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01306" name="l01306"></a><span class="lineno"> 1306</span>{</div>
<div class="line"><a id="l01307" name="l01307"></a><span class="lineno"> 1307</span>    uint8_t type;</div>
<div class="line"><a id="l01308" name="l01308"></a><span class="lineno"> 1308</span>    uint8_t objHandle;      <span class="comment">/* the handle of the closed object */</span></div>
<div class="line"><a id="l01309" name="l01309"></a><span class="lineno"> 1309</span>    uint16_t symbolIndex;   <span class="comment">/* the name of the closed object */</span></div>
<div class="line"><a id="l01310" name="l01310"></a><span class="lineno"> 1310</span>} ObjCloseNameEvent;</div>
<div class="line"><a id="l01311" name="l01311"></a><span class="lineno"> 1311</span> </div>
<div class="line"><a id="l01312" name="l01312"></a><span class="lineno"> 1312</span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01313" name="l01313"></a><span class="lineno"> 1313</span>{</div>
<div class="line"><a id="l01314" name="l01314"></a><span class="lineno"> 1314</span>    uint8_t type;</div>
<div class="line"><a id="l01315" name="l01315"></a><span class="lineno"> 1315</span>    uint8_t arg1;</div>
<div class="line"><a id="l01316" name="l01316"></a><span class="lineno"> 1316</span>    uint8_t arg2;</div>
<div class="line"><a id="l01317" name="l01317"></a><span class="lineno"> 1317</span>    uint8_t arg3;</div>
<div class="line"><a id="l01318" name="l01318"></a><span class="lineno"> 1318</span>} ObjClosePropEvent;</div>
<div class="line"><a id="l01319" name="l01319"></a><span class="lineno"> 1319</span> </div>
<div class="line"><a id="l01320" name="l01320"></a><span class="lineno"> 1320</span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01321" name="l01321"></a><span class="lineno"> 1321</span>{</div>
<div class="line"><a id="l01322" name="l01322"></a><span class="lineno"> 1322</span>    uint8_t type;</div>
<div class="line"><a id="l01323" name="l01323"></a><span class="lineno"> 1323</span>    uint8_t unused1;</div>
<div class="line"><a id="l01324" name="l01324"></a><span class="lineno"> 1324</span>    uint8_t unused2;</div>
<div class="line"><a id="l01325" name="l01325"></a><span class="lineno"> 1325</span>    uint8_t dts;</div>
<div class="line"><a id="l01326" name="l01326"></a><span class="lineno"> 1326</span>} TaskInstanceStatusEvent;</div>
<div class="line"><a id="l01327" name="l01327"></a><span class="lineno"> 1327</span> </div>
<div class="line"><a id="l01328" name="l01328"></a><span class="lineno"> 1328</span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01329" name="l01329"></a><span class="lineno"> 1329</span>{</div>
<div class="line"><a id="l01330" name="l01330"></a><span class="lineno"> 1330</span>    uint8_t type;</div>
<div class="line"><a id="l01331" name="l01331"></a><span class="lineno"> 1331</span>    uint8_t dts;</div>
<div class="line"><a id="l01332" name="l01332"></a><span class="lineno"> 1332</span>    uint16_t payload;        <span class="comment">/* the name of the user event */</span></div>
<div class="line"><a id="l01333" name="l01333"></a><span class="lineno"> 1333</span>} UserEvent;</div>
<div class="line"><a id="l01334" name="l01334"></a><span class="lineno"> 1334</span> </div>
<div class="line"><a id="l01335" name="l01335"></a><span class="lineno"> 1335</span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01336" name="l01336"></a><span class="lineno"> 1336</span>{</div>
<div class="line"><a id="l01337" name="l01337"></a><span class="lineno"> 1337</span>    uint8_t type;</div>
<div class="line"><a id="l01338" name="l01338"></a><span class="lineno"> 1338</span> </div>
<div class="line"><a id="l01339" name="l01339"></a><span class="lineno"> 1339</span>    <span class="comment">/* 8 bits extra for storing DTS, if it does not fit in ordinary event</span></div>
<div class="line"><a id="l01340" name="l01340"></a><span class="lineno"> 1340</span><span class="comment">    (this one is always MSB if used) */</span></div>
<div class="line"><a id="l01341" name="l01341"></a><span class="lineno"> 1341</span>    uint8_t xts_8;</div>
<div class="line"><a id="l01342" name="l01342"></a><span class="lineno"> 1342</span> </div>
<div class="line"><a id="l01343" name="l01343"></a><span class="lineno"> 1343</span>    <span class="comment">/* 16 bits extra for storing DTS, if it does not fit in ordinary event. */</span></div>
<div class="line"><a id="l01344" name="l01344"></a><span class="lineno"> 1344</span>    uint16_t xts_16;</div>
<div class="line"><a id="l01345" name="l01345"></a><span class="lineno"> 1345</span>} XTSEvent;</div>
<div class="line"><a id="l01346" name="l01346"></a><span class="lineno"> 1346</span> </div>
<div class="line"><a id="l01347" name="l01347"></a><span class="lineno"> 1347</span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01348" name="l01348"></a><span class="lineno"> 1348</span>{</div>
<div class="line"><a id="l01349" name="l01349"></a><span class="lineno"> 1349</span>    uint8_t type;</div>
<div class="line"><a id="l01350" name="l01350"></a><span class="lineno"> 1350</span> </div>
<div class="line"><a id="l01351" name="l01351"></a><span class="lineno"> 1351</span>    uint8_t xps_8;</div>
<div class="line"><a id="l01352" name="l01352"></a><span class="lineno"> 1352</span>    uint16_t xps_16;</div>
<div class="line"><a id="l01353" name="l01353"></a><span class="lineno"> 1353</span>} XPSEvent;</div>
<div class="line"><a id="l01354" name="l01354"></a><span class="lineno"> 1354</span> </div>
<div class="line"><a id="l01355" name="l01355"></a><span class="lineno"> 1355</span><span class="keyword">typedef</span> <span class="keyword">struct</span>{</div>
<div class="line"><a id="l01356" name="l01356"></a><span class="lineno"> 1356</span>    uint8_t type;</div>
<div class="line"><a id="l01357" name="l01357"></a><span class="lineno"> 1357</span>    uint8_t dts;</div>
<div class="line"><a id="l01358" name="l01358"></a><span class="lineno"> 1358</span>    uint16_t size;</div>
<div class="line"><a id="l01359" name="l01359"></a><span class="lineno"> 1359</span>} MemEventSize;</div>
<div class="line"><a id="l01360" name="l01360"></a><span class="lineno"> 1360</span> </div>
<div class="line"><a id="l01361" name="l01361"></a><span class="lineno"> 1361</span><span class="keyword">typedef</span> <span class="keyword">struct</span>{</div>
<div class="line"><a id="l01362" name="l01362"></a><span class="lineno"> 1362</span>    uint8_t type;</div>
<div class="line"><a id="l01363" name="l01363"></a><span class="lineno"> 1363</span>    uint8_t addr_high;</div>
<div class="line"><a id="l01364" name="l01364"></a><span class="lineno"> 1364</span>    uint16_t addr_low;</div>
<div class="line"><a id="l01365" name="l01365"></a><span class="lineno"> 1365</span>} MemEventAddr;</div>
<div class="line"><a id="l01366" name="l01366"></a><span class="lineno"> 1366</span> </div>
<div class="line"><a id="l01367" name="l01367"></a><span class="lineno"> 1367</span><span class="comment">/*******************************************************************************</span></div>
<div class="line"><a id="l01368" name="l01368"></a><span class="lineno"> 1368</span><span class="comment"> * The separate user event buffer structure. Can be enabled in trcConfig.h.</span></div>
<div class="line"><a id="l01369" name="l01369"></a><span class="lineno"> 1369</span><span class="comment"> ******************************************************************************/</span></div>
<div class="line"><a id="l01370" name="l01370"></a><span class="lineno"> 1370</span> </div>
<div class="line"><a id="l01371" name="l01371"></a><span class="lineno"> 1371</span><span class="preprocessor">#if (TRC_CFG_USE_SEPARATE_USER_EVENT_BUFFER == 1)</span></div>
<div class="line"><a id="l01372" name="l01372"></a><span class="lineno"> 1372</span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01373" name="l01373"></a><span class="lineno"> 1373</span>{</div>
<div class="line"><a id="l01374" name="l01374"></a><span class="lineno"> 1374</span>    TraceStringHandle_t name;</div>
<div class="line"><a id="l01375" name="l01375"></a><span class="lineno"> 1375</span>    TraceStringHandle_t defaultFormat;</div>
<div class="line"><a id="l01376" name="l01376"></a><span class="lineno"> 1376</span>} ChannelFormatPair;</div>
<div class="line"><a id="l01377" name="l01377"></a><span class="lineno"> 1377</span> </div>
<div class="line"><a id="l01378" name="l01378"></a><span class="lineno"> 1378</span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01379" name="l01379"></a><span class="lineno"> 1379</span>{</div>
<div class="line"><a id="l01380" name="l01380"></a><span class="lineno"> 1380</span>    uint16_t bufferID;</div>
<div class="line"><a id="l01381" name="l01381"></a><span class="lineno"> 1381</span>    uint16_t version;</div>
<div class="line"><a id="l01382" name="l01382"></a><span class="lineno"> 1382</span>    uint32_t wraparoundCounter;</div>
<div class="line"><a id="l01383" name="l01383"></a><span class="lineno"> 1383</span>    uint32_t numberOfSlots;</div>
<div class="line"><a id="l01384" name="l01384"></a><span class="lineno"> 1384</span>    uint32_t nextSlotToWrite;</div>
<div class="line"><a id="l01385" name="l01385"></a><span class="lineno"> 1385</span>    uint8_t numberOfChannels;</div>
<div class="line"><a id="l01386" name="l01386"></a><span class="lineno"> 1386</span>    uint8_t padding1;</div>
<div class="line"><a id="l01387" name="l01387"></a><span class="lineno"> 1387</span>    uint8_t padding2;</div>
<div class="line"><a id="l01388" name="l01388"></a><span class="lineno"> 1388</span>    uint8_t padding3;</div>
<div class="line"><a id="l01389" name="l01389"></a><span class="lineno"> 1389</span>    ChannelFormatPair channels[(TRC_CFG_UB_CHANNELS)+1];</div>
<div class="line"><a id="l01390" name="l01390"></a><span class="lineno"> 1390</span>    uint8_t channelBuffer[((TRC_CFG_SEPARATE_USER_EVENT_BUFFER_SIZE) + 3) &amp; 0xFFFFFFFC]; <span class="comment">/* 1 byte per slot, with padding for 4 byte alignment */</span></div>
<div class="line"><a id="l01391" name="l01391"></a><span class="lineno"> 1391</span>    uint8_t dataBuffer[(TRC_CFG_SEPARATE_USER_EVENT_BUFFER_SIZE) * 4]; <span class="comment">/* 4 bytes per slot */</span></div>
<div class="line"><a id="l01392" name="l01392"></a><span class="lineno"> 1392</span> </div>
<div class="line"><a id="l01393" name="l01393"></a><span class="lineno"> 1393</span>} UserEventBuffer;</div>
<div class="line"><a id="l01394" name="l01394"></a><span class="lineno"> 1394</span><span class="preprocessor">#endif </span><span class="comment">/* (TRC_CFG_USE_SEPARATE_USER_EVENT_BUFFER == 1) */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01395" name="l01395"></a><span class="lineno"> 1395</span> </div>
<div class="line"><a id="l01396" name="l01396"></a><span class="lineno"> 1396</span><span class="comment">/*******************************************************************************</span></div>
<div class="line"><a id="l01397" name="l01397"></a><span class="lineno"> 1397</span><span class="comment"> * The main data structure, read by Tracealyzer from the RAM dump</span></div>
<div class="line"><a id="l01398" name="l01398"></a><span class="lineno"> 1398</span><span class="comment"> ******************************************************************************/</span></div>
<div class="line"><a id="l01399" name="l01399"></a><span class="lineno"> 1399</span> </div>
<div class="line"><a id="l01400" name="l01400"></a><span class="lineno"> 1400</span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l01401" name="l01401"></a><span class="lineno"> 1401</span>{</div>
<div class="line"><a id="l01402" name="l01402"></a><span class="lineno"> 1402</span>    <span class="keyword">volatile</span> uint8_t startmarker0; <span class="comment">/* Volatile is important, see init code. */</span></div>
<div class="line"><a id="l01403" name="l01403"></a><span class="lineno"> 1403</span>    <span class="keyword">volatile</span> uint8_t startmarker1;</div>
<div class="line"><a id="l01404" name="l01404"></a><span class="lineno"> 1404</span>    <span class="keyword">volatile</span> uint8_t startmarker2;</div>
<div class="line"><a id="l01405" name="l01405"></a><span class="lineno"> 1405</span>    <span class="keyword">volatile</span> uint8_t startmarker3;</div>
<div class="line"><a id="l01406" name="l01406"></a><span class="lineno"> 1406</span>    <span class="keyword">volatile</span> uint8_t startmarker4;</div>
<div class="line"><a id="l01407" name="l01407"></a><span class="lineno"> 1407</span>    <span class="keyword">volatile</span> uint8_t startmarker5;</div>
<div class="line"><a id="l01408" name="l01408"></a><span class="lineno"> 1408</span>    <span class="keyword">volatile</span> uint8_t startmarker6;</div>
<div class="line"><a id="l01409" name="l01409"></a><span class="lineno"> 1409</span>    <span class="keyword">volatile</span> uint8_t startmarker7;</div>
<div class="line"><a id="l01410" name="l01410"></a><span class="lineno"> 1410</span>    <span class="keyword">volatile</span> uint8_t startmarker8;</div>
<div class="line"><a id="l01411" name="l01411"></a><span class="lineno"> 1411</span>    <span class="keyword">volatile</span> uint8_t startmarker9;</div>
<div class="line"><a id="l01412" name="l01412"></a><span class="lineno"> 1412</span>    <span class="keyword">volatile</span> uint8_t startmarker10;</div>
<div class="line"><a id="l01413" name="l01413"></a><span class="lineno"> 1413</span>    <span class="keyword">volatile</span> uint8_t startmarker11;</div>
<div class="line"><a id="l01414" name="l01414"></a><span class="lineno"> 1414</span> </div>
<div class="line"><a id="l01415" name="l01415"></a><span class="lineno"> 1415</span>    <span class="comment">/* Used to determine Kernel and Endianess */</span></div>
<div class="line"><a id="l01416" name="l01416"></a><span class="lineno"> 1416</span>    uint16_t version;</div>
<div class="line"><a id="l01417" name="l01417"></a><span class="lineno"> 1417</span> </div>
<div class="line"><a id="l01418" name="l01418"></a><span class="lineno"> 1418</span>    <span class="comment">/* Currently 7 */</span></div>
<div class="line"><a id="l01419" name="l01419"></a><span class="lineno"> 1419</span>    uint8_t minor_version;</div>
<div class="line"><a id="l01420" name="l01420"></a><span class="lineno"> 1420</span> </div>
<div class="line"><a id="l01421" name="l01421"></a><span class="lineno"> 1421</span>    <span class="comment">/* This should be 0 if lower IRQ priority values implies higher priority</span></div>
<div class="line"><a id="l01422" name="l01422"></a><span class="lineno"> 1422</span><span class="comment">    levels, such as on ARM Cortex M. If the opposite scheme is used, i.e.,</span></div>
<div class="line"><a id="l01423" name="l01423"></a><span class="lineno"> 1423</span><span class="comment">    if higher IRQ priority values means higher priority, this should be 1. */</span></div>
<div class="line"><a id="l01424" name="l01424"></a><span class="lineno"> 1424</span>    uint8_t irq_priority_order;</div>
<div class="line"><a id="l01425" name="l01425"></a><span class="lineno"> 1425</span> </div>
<div class="line"><a id="l01426" name="l01426"></a><span class="lineno"> 1426</span>    <span class="comment">/* sizeof(RecorderDataType) - just for control */</span></div>
<div class="line"><a id="l01427" name="l01427"></a><span class="lineno"> 1427</span>    uint32_t filesize;</div>
<div class="line"><a id="l01428" name="l01428"></a><span class="lineno"> 1428</span> </div>
<div class="line"><a id="l01429" name="l01429"></a><span class="lineno"> 1429</span>    <span class="comment">/* Current number of events recorded */</span></div>
<div class="line"><a id="l01430" name="l01430"></a><span class="lineno"> 1430</span>    uint32_t numEvents;</div>
<div class="line"><a id="l01431" name="l01431"></a><span class="lineno"> 1431</span> </div>
<div class="line"><a id="l01432" name="l01432"></a><span class="lineno"> 1432</span>    <span class="comment">/* The buffer size, in number of event records */</span></div>
<div class="line"><a id="l01433" name="l01433"></a><span class="lineno"> 1433</span>    uint32_t maxEvents;</div>
<div class="line"><a id="l01434" name="l01434"></a><span class="lineno"> 1434</span> </div>
<div class="line"><a id="l01435" name="l01435"></a><span class="lineno"> 1435</span>    <span class="comment">/* The event buffer index, where to write the next event */</span></div>
<div class="line"><a id="l01436" name="l01436"></a><span class="lineno"> 1436</span>    uint32_t nextFreeIndex;</div>
<div class="line"><a id="l01437" name="l01437"></a><span class="lineno"> 1437</span> </div>
<div class="line"><a id="l01438" name="l01438"></a><span class="lineno"> 1438</span>    <span class="comment">/* 1 if the buffer is full, 0 otherwise */</span></div>
<div class="line"><a id="l01439" name="l01439"></a><span class="lineno"> 1439</span>    uint32_t bufferIsFull;</div>
<div class="line"><a id="l01440" name="l01440"></a><span class="lineno"> 1440</span> </div>
<div class="line"><a id="l01441" name="l01441"></a><span class="lineno"> 1441</span>    <span class="comment">/* The frequency of the clock/timer/counter used as time base */</span></div>
<div class="line"><a id="l01442" name="l01442"></a><span class="lineno"> 1442</span>    uint32_t frequency;</div>
<div class="line"><a id="l01443" name="l01443"></a><span class="lineno"> 1443</span> </div>
<div class="line"><a id="l01444" name="l01444"></a><span class="lineno"> 1444</span>    <span class="comment">/* The absolute timestamp of the last stored event, in the native</span></div>
<div class="line"><a id="l01445" name="l01445"></a><span class="lineno"> 1445</span><span class="comment">    timebase, modulo frequency! */</span></div>
<div class="line"><a id="l01446" name="l01446"></a><span class="lineno"> 1446</span>    uint32_t absTimeLastEvent;</div>
<div class="line"><a id="l01447" name="l01447"></a><span class="lineno"> 1447</span> </div>
<div class="line"><a id="l01448" name="l01448"></a><span class="lineno"> 1448</span>    <span class="comment">/* The number of seconds in total - lasts for 136 years */</span></div>
<div class="line"><a id="l01449" name="l01449"></a><span class="lineno"> 1449</span>    uint32_t absTimeLastEventSecond;</div>
<div class="line"><a id="l01450" name="l01450"></a><span class="lineno"> 1450</span> </div>
<div class="line"><a id="l01451" name="l01451"></a><span class="lineno"> 1451</span>    <span class="comment">/* 1 if the recorder has been started, 0 if not yet started or stopped.</span></div>
<div class="line"><a id="l01452" name="l01452"></a><span class="lineno"> 1452</span><span class="comment">    This is a 32 bit variable due to alignment issues. */</span></div>
<div class="line"><a id="l01453" name="l01453"></a><span class="lineno"> 1453</span>    uint32_t recorderActive;</div>
<div class="line"><a id="l01454" name="l01454"></a><span class="lineno"> 1454</span> </div>
<div class="line"><a id="l01455" name="l01455"></a><span class="lineno"> 1455</span>    <span class="comment">/* If &gt; 0, tells the maximum time between two traced ISRs that execute</span></div>
<div class="line"><a id="l01456" name="l01456"></a><span class="lineno"> 1456</span><span class="comment">    back-to-back. If the time between vTraceStoreISREnd and a directly</span></div>
<div class="line"><a id="l01457" name="l01457"></a><span class="lineno"> 1457</span><span class="comment">    following vTraceISRBegin is above isrTailchainingThreshold, we assume a</span></div>
<div class="line"><a id="l01458" name="l01458"></a><span class="lineno"> 1458</span><span class="comment">    return to the previous context in between the ISRs, otherwise we assume</span></div>
<div class="line"><a id="l01459" name="l01459"></a><span class="lineno"> 1459</span><span class="comment">    the have executed back-to-back and don&#39;t show any fragment of the previous</span></div>
<div class="line"><a id="l01460" name="l01460"></a><span class="lineno"> 1460</span><span class="comment">    context in between. */</span> </div>
<div class="line"><a id="l01461" name="l01461"></a><span class="lineno"> 1461</span>    uint32_t isrTailchainingThreshold;</div>
<div class="line"><a id="l01462" name="l01462"></a><span class="lineno"> 1462</span> </div>
<div class="line"><a id="l01463" name="l01463"></a><span class="lineno"> 1463</span>    <span class="comment">/* The maximum amount of heap memory that was allocated */</span></div>
<div class="line"><a id="l01464" name="l01464"></a><span class="lineno"> 1464</span>    uint32_t heapMemMaxUsage;</div>
<div class="line"><a id="l01465" name="l01465"></a><span class="lineno"> 1465</span> </div>
<div class="line"><a id="l01466" name="l01466"></a><span class="lineno"> 1466</span>    <span class="comment">/* The amount of heap memory used */</span></div>
<div class="line"><a id="l01467" name="l01467"></a><span class="lineno"> 1467</span>    uint32_t heapMemUsage;</div>
<div class="line"><a id="l01468" name="l01468"></a><span class="lineno"> 1468</span> </div>
<div class="line"><a id="l01469" name="l01469"></a><span class="lineno"> 1469</span>    <span class="comment">/* 0xF0F0F0F0 - for control only */</span></div>
<div class="line"><a id="l01470" name="l01470"></a><span class="lineno"> 1470</span>    int32_t debugMarker0;</div>
<div class="line"><a id="l01471" name="l01471"></a><span class="lineno"> 1471</span> </div>
<div class="line"><a id="l01472" name="l01472"></a><span class="lineno"> 1472</span>    <span class="comment">/* Set to value of TRC_CFG_USE_16BIT_OBJECT_HANDLES */</span></div>
<div class="line"><a id="l01473" name="l01473"></a><span class="lineno"> 1473</span>    uint32_t isUsing16bitHandles;</div>
<div class="line"><a id="l01474" name="l01474"></a><span class="lineno"> 1474</span> </div>
<div class="line"><a id="l01475" name="l01475"></a><span class="lineno"> 1475</span>    <span class="comment">/* The Object Property Table holds information about currently active</span></div>
<div class="line"><a id="l01476" name="l01476"></a><span class="lineno"> 1476</span><span class="comment">    tasks, queues, and other recorded objects. This is updated on each</span></div>
<div class="line"><a id="l01477" name="l01477"></a><span class="lineno"> 1477</span><span class="comment">    create call and includes object name and other properties. */</span></div>
<div class="line"><a id="l01478" name="l01478"></a><span class="lineno"> 1478</span>    <a class="code hl_struct" href="structObjectPropertyTableType.html">ObjectPropertyTableType</a> ObjectPropertyTable;</div>
<div class="line"><a id="l01479" name="l01479"></a><span class="lineno"> 1479</span> </div>
<div class="line"><a id="l01480" name="l01480"></a><span class="lineno"> 1480</span>    <span class="comment">/* 0xF1F1F1F1 - for control only */</span></div>
<div class="line"><a id="l01481" name="l01481"></a><span class="lineno"> 1481</span>    int32_t debugMarker1;</div>
<div class="line"><a id="l01482" name="l01482"></a><span class="lineno"> 1482</span> </div>
<div class="line"><a id="l01483" name="l01483"></a><span class="lineno"> 1483</span>    <span class="comment">/* The Symbol Table stores strings for User Events and is also used to</span></div>
<div class="line"><a id="l01484" name="l01484"></a><span class="lineno"> 1484</span><span class="comment">    store names of deleted objects, which still may be in the trace but no</span></div>
<div class="line"><a id="l01485" name="l01485"></a><span class="lineno"> 1485</span><span class="comment">    longer are available. */</span></div>
<div class="line"><a id="l01486" name="l01486"></a><span class="lineno"> 1486</span>    <a class="code hl_struct" href="structsymbolTableType.html">symbolTableType</a> SymbolTable;</div>
<div class="line"><a id="l01487" name="l01487"></a><span class="lineno"> 1487</span> </div>
<div class="line"><a id="l01488" name="l01488"></a><span class="lineno"> 1488</span>    <span class="comment">/* For inclusion of float support, and for endian detection of floats.</span></div>
<div class="line"><a id="l01489" name="l01489"></a><span class="lineno"> 1489</span><span class="comment">    The value should be (float)1 or (uint32_t)0 */</span></div>
<div class="line"><a id="l01490" name="l01490"></a><span class="lineno"> 1490</span><span class="preprocessor">#if (TRC_CFG_INCLUDE_FLOAT_SUPPORT == 1)</span></div>
<div class="line"><a id="l01491" name="l01491"></a><span class="lineno"> 1491</span>    <span class="keywordtype">float</span> exampleFloatEncoding;</div>
<div class="line"><a id="l01492" name="l01492"></a><span class="lineno"> 1492</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l01493" name="l01493"></a><span class="lineno"> 1493</span>    uint32_t exampleFloatEncoding;</div>
<div class="line"><a id="l01494" name="l01494"></a><span class="lineno"> 1494</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l01495" name="l01495"></a><span class="lineno"> 1495</span>    <span class="comment">/* This is non-zero if an internal error occurred in the recorder, e.g., if</span></div>
<div class="line"><a id="l01496" name="l01496"></a><span class="lineno"> 1496</span><span class="comment">    one of the Nxxx constants was too small. The systemInfo string will then</span></div>
<div class="line"><a id="l01497" name="l01497"></a><span class="lineno"> 1497</span><span class="comment">    contain an error message that is displayed when attempting to view the</span></div>
<div class="line"><a id="l01498" name="l01498"></a><span class="lineno"> 1498</span><span class="comment">    trace file. */</span></div>
<div class="line"><a id="l01499" name="l01499"></a><span class="lineno"> 1499</span>    uint32_t internalErrorOccured;</div>
<div class="line"><a id="l01500" name="l01500"></a><span class="lineno"> 1500</span> </div>
<div class="line"><a id="l01501" name="l01501"></a><span class="lineno"> 1501</span>    <span class="comment">/* 0xF2F2F2F2 - for control only */</span></div>
<div class="line"><a id="l01502" name="l01502"></a><span class="lineno"> 1502</span>    int32_t debugMarker2;</div>
<div class="line"><a id="l01503" name="l01503"></a><span class="lineno"> 1503</span> </div>
<div class="line"><a id="l01504" name="l01504"></a><span class="lineno"> 1504</span>    <span class="comment">/* Error messages from the recorder. */</span></div>
<div class="line"><a id="l01505" name="l01505"></a><span class="lineno"> 1505</span>    <span class="keywordtype">char</span> systemInfo[80];</div>
<div class="line"><a id="l01506" name="l01506"></a><span class="lineno"> 1506</span> </div>
<div class="line"><a id="l01507" name="l01507"></a><span class="lineno"> 1507</span>    <span class="comment">/* 0xF3F3F3F3 - for control only */</span></div>
<div class="line"><a id="l01508" name="l01508"></a><span class="lineno"> 1508</span>    int32_t debugMarker3;</div>
<div class="line"><a id="l01509" name="l01509"></a><span class="lineno"> 1509</span> </div>
<div class="line"><a id="l01510" name="l01510"></a><span class="lineno"> 1510</span>    <span class="comment">/* The event data, in 4-byte records */</span></div>
<div class="line"><a id="l01511" name="l01511"></a><span class="lineno"> 1511</span>    uint8_t eventData[ (TRC_CFG_EVENT_BUFFER_SIZE) * 4 ];</div>
<div class="line"><a id="l01512" name="l01512"></a><span class="lineno"> 1512</span> </div>
<div class="line"><a id="l01513" name="l01513"></a><span class="lineno"> 1513</span><span class="preprocessor">#if (TRC_CFG_USE_SEPARATE_USER_EVENT_BUFFER == 1)</span></div>
<div class="line"><a id="l01514" name="l01514"></a><span class="lineno"> 1514</span>    UserEventBuffer userEventBuffer;</div>
<div class="line"><a id="l01515" name="l01515"></a><span class="lineno"> 1515</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l01516" name="l01516"></a><span class="lineno"> 1516</span> </div>
<div class="line"><a id="l01517" name="l01517"></a><span class="lineno"> 1517</span>    <span class="comment">/* This should always be 0 */</span></div>
<div class="line"><a id="l01518" name="l01518"></a><span class="lineno"> 1518</span>    uint32_t endOfSecondaryBlocks;</div>
<div class="line"><a id="l01519" name="l01519"></a><span class="lineno"> 1519</span> </div>
<div class="line"><a id="l01520" name="l01520"></a><span class="lineno"> 1520</span>    uint8_t endmarker0;</div>
<div class="line"><a id="l01521" name="l01521"></a><span class="lineno"> 1521</span>    uint8_t endmarker1;</div>
<div class="line"><a id="l01522" name="l01522"></a><span class="lineno"> 1522</span>    uint8_t endmarker2;</div>
<div class="line"><a id="l01523" name="l01523"></a><span class="lineno"> 1523</span>    uint8_t endmarker3;</div>
<div class="line"><a id="l01524" name="l01524"></a><span class="lineno"> 1524</span>    uint8_t endmarker4;</div>
<div class="line"><a id="l01525" name="l01525"></a><span class="lineno"> 1525</span>    uint8_t endmarker5;</div>
<div class="line"><a id="l01526" name="l01526"></a><span class="lineno"> 1526</span>    uint8_t endmarker6;</div>
<div class="line"><a id="l01527" name="l01527"></a><span class="lineno"> 1527</span>    uint8_t endmarker7;</div>
<div class="line"><a id="l01528" name="l01528"></a><span class="lineno"> 1528</span>    uint8_t endmarker8;</div>
<div class="line"><a id="l01529" name="l01529"></a><span class="lineno"> 1529</span>    uint8_t endmarker9;</div>
<div class="line"><a id="l01530" name="l01530"></a><span class="lineno"> 1530</span>    uint8_t endmarker10;</div>
<div class="line"><a id="l01531" name="l01531"></a><span class="lineno"> 1531</span>    uint8_t endmarker11;</div>
<div class="line"><a id="l01532" name="l01532"></a><span class="lineno"> 1532</span>} RecorderDataType;</div>
<div class="line"><a id="l01533" name="l01533"></a><span class="lineno"> 1533</span> </div>
<div class="line"><a id="l01534" name="l01534"></a><span class="lineno"> 1534</span><span class="keyword">extern</span> RecorderDataType* RecorderDataPtr;</div>
<div class="line"><a id="l01535" name="l01535"></a><span class="lineno"> 1535</span> </div>
<div class="line"><a id="l01536" name="l01536"></a><span class="lineno"> 1536</span><span class="comment">/* Internal functions */</span></div>
<div class="line"><a id="l01537" name="l01537"></a><span class="lineno"> 1537</span> </div>
<div class="line"><a id="l01543" name="l01543"></a><span class="lineno"> 1543</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#ab8880560ab4d9c96029e2e824269afad">prvTraceError</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* msg);</div>
<div class="line"><a id="l01544" name="l01544"></a><span class="lineno"> 1544</span> </div>
<div class="line"><a id="l01557" name="l01557"></a><span class="lineno"> 1557</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#aea1bcdac03786dae79fe2a2089088f8e">prvTracePortGetTimeStamp</a>(uint32_t *puiTimestamp);</div>
<div class="line"><a id="l01558" name="l01558"></a><span class="lineno"> 1558</span> </div>
<div class="line"><a id="l01566" name="l01566"></a><span class="lineno"> 1566</span>traceHandle <a class="code hl_function" href="trcRecorder_8h.html#a34a75e8fda85479d917a3038ab437813">prvTraceGetObjectHandle</a>(traceObjectClass objectclass);</div>
<div class="line"><a id="l01567" name="l01567"></a><span class="lineno"> 1567</span> </div>
<div class="line"><a id="l01574" name="l01574"></a><span class="lineno"> 1574</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#a3b03d1095ea88af99c6e3d0e785834aa">prvTraceFreeObjectHandle</a>(traceObjectClass objectclass,</div>
<div class="line"><a id="l01575" name="l01575"></a><span class="lineno"> 1575</span>                            traceHandle handle);</div>
<div class="line"><a id="l01576" name="l01576"></a><span class="lineno"> 1576</span> </div>
<div class="line"><a id="l01577" name="l01577"></a><span class="lineno"> 1577</span><span class="comment">/* Private function. Use the public functions in trcKernelPort.h */</span></div>
<div class="line"><a id="l01578" name="l01578"></a><span class="lineno"> 1578</span> </div>
<div class="line"><a id="l01586" name="l01586"></a><span class="lineno"> 1586</span><span class="keywordtype">void</span> <a class="code hl_function" href="trcRecorder_8h.html#aa011a8bb0aabcdf311f4ca0e4f106e2a">prvTraceSetObjectName</a>(traceObjectClass objectclass,</div>
<div class="line"><a id="l01587" name="l01587"></a><span class="lineno"> 1587</span>                            traceHandle handle,</div>
<div class="line"><a id="l01588" name="l01588"></a><span class="lineno"> 1588</span>                            <span class="keyword">const</span> <span class="keywordtype">char</span>* name);</div>
<div class="line"><a id="l01589" name="l01589"></a><span class="lineno"> 1589</span> </div>
<div class="line"><a id="l01590" name="l01590"></a><span class="lineno"> 1590</span><span class="comment">/* Internal macros */</span></div>
<div class="line"><a id="l01591" name="l01591"></a><span class="lineno"> 1591</span> </div>
<div class="line"><a id="l01592" name="l01592"></a><span class="lineno"> 1592</span><span class="preprocessor">#define TRACE_PROPERTY_NAME_GET(objectclass, objecthandle) \</span></div>
<div class="line"><a id="l01593" name="l01593"></a><span class="lineno"> 1593</span><span class="preprocessor">    (const char*)(&amp; RecorderDataPtr-&gt;ObjectPropertyTable.objbytes \</span></div>
<div class="line"><a id="l01594" name="l01594"></a><span class="lineno"> 1594</span><span class="preprocessor">    [uiIndexOfObject(objecthandle, objectclass)])</span></div>
<div class="line"><a id="l01595" name="l01595"></a><span class="lineno"> 1595</span> </div>
<div class="line"><a id="l01596" name="l01596"></a><span class="lineno"> 1596</span><span class="preprocessor">#define TRACE_PROPERTY_OBJECT_STATE(objectclass, handle) \</span></div>
<div class="line"><a id="l01597" name="l01597"></a><span class="lineno"> 1597</span><span class="preprocessor">    RecorderDataPtr-&gt;ObjectPropertyTable.objbytes[uiIndexOfObject(handle, objectclass) \</span></div>
<div class="line"><a id="l01598" name="l01598"></a><span class="lineno"> 1598</span><span class="preprocessor">    + RecorderDataPtr-&gt;ObjectPropertyTable.NameLengthPerClass[objectclass]]</span></div>
<div class="line"><a id="l01599" name="l01599"></a><span class="lineno"> 1599</span> </div>
<div class="line"><a id="l01600" name="l01600"></a><span class="lineno"> 1600</span><span class="preprocessor">#define TRACE_PROPERTY_ACTOR_PRIORITY(objectclass, handle) \</span></div>
<div class="line"><a id="l01601" name="l01601"></a><span class="lineno"> 1601</span><span class="preprocessor">    RecorderDataPtr-&gt;ObjectPropertyTable.objbytes[uiIndexOfObject(handle, objectclass) \</span></div>
<div class="line"><a id="l01602" name="l01602"></a><span class="lineno"> 1602</span><span class="preprocessor">    + RecorderDataPtr-&gt;ObjectPropertyTable.NameLengthPerClass[objectclass] + 1]</span></div>
<div class="line"><a id="l01603" name="l01603"></a><span class="lineno"> 1603</span> </div>
<div class="line"><a id="l01604" name="l01604"></a><span class="lineno"> 1604</span><span class="comment">/* DEBUG ASSERTS */</span></div>
<div class="line"><a id="l01605" name="l01605"></a><span class="lineno"> 1605</span><span class="preprocessor">#if defined TRC_CFG_USE_TRACE_ASSERT &amp;&amp; TRC_CFG_USE_TRACE_ASSERT != 0</span></div>
<div class="line"><a id="l01606" name="l01606"></a><span class="lineno"> 1606</span><span class="preprocessor">#define TRACE_ASSERT(eval, msg, defRetVal) \</span></div>
<div class="line"><a id="l01607" name="l01607"></a><span class="lineno"> 1607</span><span class="preprocessor">    if (!(eval)) \</span></div>
<div class="line"><a id="l01608" name="l01608"></a><span class="lineno"> 1608</span><span class="preprocessor">    { \</span></div>
<div class="line"><a id="l01609" name="l01609"></a><span class="lineno"> 1609</span><span class="preprocessor">        prvTraceError(&quot;TRACE_ASSERT: &quot;</span> msg); \</div>
<div class="line"><a id="l01610" name="l01610"></a><span class="lineno"> 1610</span>        return defRetVal; \</div>
<div class="line"><a id="l01611" name="l01611"></a><span class="lineno"> 1611</span>    }</div>
<div class="line"><a id="l01612" name="l01612"></a><span class="lineno"> 1612</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l01613" name="l01613"></a><span class="lineno"> 1613</span><span class="preprocessor">#define TRACE_ASSERT(eval, msg, defRetVal)</span></div>
<div class="line"><a id="l01614" name="l01614"></a><span class="lineno"> 1614</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l01615" name="l01615"></a><span class="lineno"> 1615</span> </div>
<div class="line"><a id="l01616" name="l01616"></a><span class="lineno"> 1616</span><span class="keyword">typedef</span> RecorderDataType TraceRecorderData_t;</div>
<div class="line"><a id="l01617" name="l01617"></a><span class="lineno"> 1617</span> </div>
<div class="line"><a id="l01618" name="l01618"></a><span class="lineno"> 1618</span><span class="preprocessor">#endif </span><span class="comment">/*(TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_SNAPSHOT)*/</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01619" name="l01619"></a><span class="lineno"> 1619</span> </div>
<div class="line"><a id="l01620" name="l01620"></a><span class="lineno"> 1620</span><span class="preprocessor">#if (TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_STREAMING)</span></div>
<div class="line"><a id="l01621" name="l01621"></a><span class="lineno"> 1621</span> </div>
<div class="line"><a id="l01622" name="l01622"></a><span class="lineno"> 1622</span><span class="preprocessor">#ifndef TRC_EXTERNAL_BUFFERS</span></div>
<div class="line"><a id="l01623" name="l01623"></a><span class="lineno"> 1623</span><span class="preprocessor">#define TRC_EXTERNAL_BUFFERS 0</span></div>
<div class="line"><a id="l01624" name="l01624"></a><span class="lineno"> 1624</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l01625" name="l01625"></a><span class="lineno"> 1625</span> </div>
<div class="line"><a id="l01626" name="l01626"></a><span class="lineno"> 1626</span><span class="keyword">typedef</span> <span class="keyword">struct </span>TraceRecorderData    <span class="comment">/* Aligned */</span></div>
<div class="line"><a id="l01627" name="l01627"></a><span class="lineno"> 1627</span>{</div>
<div class="line"><a id="l01628" name="l01628"></a><span class="lineno"> 1628</span>    uint32_t uiSessionCounter;</div>
<div class="line"><a id="l01629" name="l01629"></a><span class="lineno"> 1629</span>    uint32_t uiRecorderEnabled;</div>
<div class="line"><a id="l01630" name="l01630"></a><span class="lineno"> 1630</span>    TraceUnsignedBaseType_t uxTraceSystemStates[TRC_CFG_CORE_COUNT];</div>
<div class="line"><a id="l01631" name="l01631"></a><span class="lineno"> 1631</span>    uint32_t reserved;                              <span class="comment">/* alignment */</span></div>
<div class="line"><a id="l01632" name="l01632"></a><span class="lineno"> 1632</span> </div>
<div class="line"><a id="l01633" name="l01633"></a><span class="lineno"> 1633</span>    TraceAssertData_t xAssertBuffer;                <span class="comment">/* aligned */</span></div>
<div class="line"><a id="l01634" name="l01634"></a><span class="lineno"> 1634</span>    TraceEntryIndexTable_t xEntryIndexTableBuffer;  <span class="comment">/* aligned */</span></div>
<div class="line"><a id="l01635" name="l01635"></a><span class="lineno"> 1635</span><span class="preprocessor">#if (TRC_EXTERNAL_BUFFERS == 0)</span></div>
<div class="line"><a id="l01636" name="l01636"></a><span class="lineno"> 1636</span>    TraceHeaderBuffer_t xHeaderBuffer;              <span class="comment">/* aligned */</span></div>
<div class="line"><a id="l01637" name="l01637"></a><span class="lineno"> 1637</span>    TraceEntryTable_t xEntryTable;                  <span class="comment">/* aligned */</span></div>
<div class="line"><a id="l01638" name="l01638"></a><span class="lineno"> 1638</span>    <a class="code hl_struct" href="structTraceTimestampData.html">TraceTimestampData_t</a> xTimestampBuffer;          <span class="comment">/* aligned */</span></div>
<div class="line"><a id="l01639" name="l01639"></a><span class="lineno"> 1639</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l01640" name="l01640"></a><span class="lineno"> 1640</span>    <a class="code hl_struct" href="structTraceStreamPortBuffer.html">TraceStreamPortBuffer_t</a> xStreamPortBuffer;      <span class="comment">/* verify alignment in xTraceInitialize() */</span></div>
<div class="line"><a id="l01641" name="l01641"></a><span class="lineno"> 1641</span>    TraceStaticBufferTable_t xStaticBufferBuffer;   <span class="comment">/* aligned */</span></div>
<div class="line"><a id="l01642" name="l01642"></a><span class="lineno"> 1642</span>    TraceEventDataTable_t xEventDataBuffer;         <span class="comment">/* verify alignment in xTraceInitialize() */</span></div>
<div class="line"><a id="l01643" name="l01643"></a><span class="lineno"> 1643</span>    TracePrintData_t xPrintBuffer;                  <span class="comment">/* aligned */</span></div>
<div class="line"><a id="l01644" name="l01644"></a><span class="lineno"> 1644</span>    TraceErrorData_t xErrorBuffer;                  <span class="comment">/* aligned */</span></div>
<div class="line"><a id="l01645" name="l01645"></a><span class="lineno"> 1645</span>    TraceISRData_t xISRBuffer;                      <span class="comment">/* aligned */</span></div>
<div class="line"><a id="l01646" name="l01646"></a><span class="lineno"> 1646</span>    <a class="code hl_struct" href="structTraceKernelPortDataBuffer.html">TraceKernelPortDataBuffer_t</a> xKernelPortBuffer;  <span class="comment">/* verify alignment in xTraceInitialize() */</span></div>
<div class="line"><a id="l01647" name="l01647"></a><span class="lineno"> 1647</span>    TraceTaskData_t xTaskInfoBuffer;                <span class="comment">/* aligned */</span></div>
<div class="line"><a id="l01648" name="l01648"></a><span class="lineno"> 1648</span>    TraceStackMonitorData_t xStackMonitorBuffer;    <span class="comment">/* aligned */</span></div>
<div class="line"><a id="l01649" name="l01649"></a><span class="lineno"> 1649</span>    TraceDiagnosticsData_t xDiagnosticsBuffer;      <span class="comment">/* aligned */</span></div>
<div class="line"><a id="l01650" name="l01650"></a><span class="lineno"> 1650</span>    TraceExtensionData_t xExtensionBuffer;          <span class="comment">/* aligned */</span></div>
<div class="line"><a id="l01651" name="l01651"></a><span class="lineno"> 1651</span>    TraceCounterData_t xCounterBuffer;              <span class="comment">/* aligned */</span></div>
<div class="line"><a id="l01652" name="l01652"></a><span class="lineno"> 1652</span>} TraceRecorderData_t;</div>
<div class="line"><a id="l01653" name="l01653"></a><span class="lineno"> 1653</span> </div>
<div class="line"><a id="l01654" name="l01654"></a><span class="lineno"> 1654</span><span class="keyword">extern</span> TraceRecorderData_t* pxTraceRecorderData;</div>
<div class="line"><a id="l01655" name="l01655"></a><span class="lineno"> 1655</span><span class="keyword">extern</span> uint32_t RecorderInitialized;</div>
<div class="line"><a id="l01656" name="l01656"></a><span class="lineno"> 1656</span> </div>
<div class="line"><a id="l01665" name="l01665"></a><span class="lineno"> 1665</span>traceResult <a class="code hl_function" href="trcRecorder_8h.html#a5313aac36d433a500e2036f3fea541aa">xTraceHeaderInitialize</a>(TraceHeaderBuffer_t* pxBuffer);</div>
<div class="line"><a id="l01666" name="l01666"></a><span class="lineno"> 1666</span> </div>
<div class="line"><a id="l01673" name="l01673"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a1991479e9a6d6653333f8bb854abbbab"> 1673</a></span><span class="preprocessor">#define xTraceIsRecorderEnabled() (xTraceIsRecorderInitialized() &amp;&amp; pxTraceRecorderData-&gt;uiRecorderEnabled)</span></div>
<div class="line"><a id="l01674" name="l01674"></a><span class="lineno"> 1674</span> </div>
<div class="line"><a id="l01681" name="l01681"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a0a44ba3c19b138067aecae815af61ca2"> 1681</a></span><span class="preprocessor">#define xTraceIsRecorderInitialized() xTraceIsComponentInitialized(TRC_RECORDER_COMPONENT_CORE)</span></div>
<div class="line"><a id="l01682" name="l01682"></a><span class="lineno"> 1682</span> </div>
<div class="line"><a id="l01691" name="l01691"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a70dff8a1b718676016da16aa0252cd3e"> 1691</a></span><span class="preprocessor">#define xTraceSetComponentInitialized(uiComponentBit) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(RecorderInitialized |= (uiComponentBit), TRC_SUCCESS)</span></div>
<div class="line"><a id="l01692" name="l01692"></a><span class="lineno"> 1692</span> </div>
<div class="line"><a id="l01701" name="l01701"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a8223714e679e845f43befeca699ef7f1"> 1701</a></span><span class="preprocessor">#define xTraceIsComponentInitialized(uiComponentBit) (RecorderInitialized &amp; (uiComponentBit))</span></div>
<div class="line"><a id="l01702" name="l01702"></a><span class="lineno"> 1702</span> </div>
<div class="line"><a id="l01711" name="l01711"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a5f268f164c766c85c14dc1de0bd92188"> 1711</a></span><span class="preprocessor">#define xTraceStateSet(uxState) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(pxTraceRecorderData-&gt;uxTraceSystemStates[TRC_CFG_GET_CURRENT_CORE()] = (uxState), TRC_SUCCESS)</span></div>
<div class="line"><a id="l01712" name="l01712"></a><span class="lineno"> 1712</span> </div>
<div class="line"><a id="l01721" name="l01721"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#ad2178d5e0ed9e33479c2b1466d9df695"> 1721</a></span><span class="preprocessor">#define xTraceStateGet(puxState) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(*(puxState) = pxTraceRecorderData-&gt;uxTraceSystemStates[TRC_CFG_GET_CURRENT_CORE()], TRC_SUCCESS)</span></div>
<div class="line"><a id="l01722" name="l01722"></a><span class="lineno"> 1722</span> </div>
<div class="line"><a id="l01729" name="l01729"></a><span class="lineno"> 1729</span>traceResult <a class="code hl_function" href="trcRecorder_8h.html#a0dc702c30539813811556694b07c806c">xTraceTzCtrl</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l01730" name="l01730"></a><span class="lineno"> 1730</span> </div>
<div class="line"><a id="l01731" name="l01731"></a><span class="lineno"> 1731</span><span class="comment">/******************************************************************************/</span></div>
<div class="line"><a id="l01732" name="l01732"></a><span class="lineno"> 1732</span><span class="comment">/*** INTERNAL STREAMING FUNCTIONS *********************************************/</span></div>
<div class="line"><a id="l01733" name="l01733"></a><span class="lineno"> 1733</span><span class="comment">/******************************************************************************/</span></div>
<div class="line"><a id="l01734" name="l01734"></a><span class="lineno"> 1734</span> </div>
<div class="line"><a id="l01740" name="l01740"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a5e9bd569fa0ab178b26838cd7b57dfb1"> 1740</a></span><span class="preprocessor">#define prvTraceStoreEvent_None(_eventID) xTraceEventCreate0(_eventID)</span></div>
<div class="line"><a id="l01741" name="l01741"></a><span class="lineno"> 1741</span> </div>
<div class="line"><a id="l01748" name="l01748"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#adfcb564325629b21bbba2b3d7b556447"> 1748</a></span><span class="preprocessor">#define prvTraceStoreEvent_Handle(_eventID, _handle) xTraceEventCreate1(_eventID, (TraceUnsignedBaseType_t)(_handle))</span></div>
<div class="line"><a id="l01749" name="l01749"></a><span class="lineno"> 1749</span> </div>
<div class="line"><a id="l01756" name="l01756"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a98326a9d7035cd5c47d7d7000924068c"> 1756</a></span><span class="preprocessor">#define prvTraceStoreEvent_Param(_eventID, _param1)  xTraceEventCreate1(_eventID, (TraceUnsignedBaseType_t)(_param1))</span></div>
<div class="line"><a id="l01757" name="l01757"></a><span class="lineno"> 1757</span> </div>
<div class="line"><a id="l01765" name="l01765"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#ae02ada674bad088544a95402f84941fb"> 1765</a></span><span class="preprocessor">#define prvTraceStoreEvent_HandleParam(_eventID, _handle, _param1) xTraceEventCreate2(_eventID, (TraceUnsignedBaseType_t)(_handle), (TraceUnsignedBaseType_t)(_param1))</span></div>
<div class="line"><a id="l01766" name="l01766"></a><span class="lineno"> 1766</span> </div>
<div class="line"><a id="l01774" name="l01774"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a76a51ed0fb238ee9a815692bb304f070"> 1774</a></span><span class="preprocessor">#define prvTraceStoreEvent_ParamParam(_eventID, _param1, _param2) xTraceEventCreate2(_eventID, (TraceUnsignedBaseType_t)(_param1), (TraceUnsignedBaseType_t)(_param2))</span></div>
<div class="line"><a id="l01775" name="l01775"></a><span class="lineno"> 1775</span> </div>
<div class="line"><a id="l01784" name="l01784"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#ab3e368e08db70fd9dffe5ed504b261e8"> 1784</a></span><span class="preprocessor">#define prvTraceStoreEvent_HandleParamParam(_eventID, _handle, _param1, _param2) xTraceEventCreate3(_eventID, (TraceUnsignedBaseType_t)(_handle), (TraceUnsignedBaseType_t)(_param1), (TraceUnsignedBaseType_t)(_param2))</span></div>
<div class="line"><a id="l01785" name="l01785"></a><span class="lineno"> 1785</span> </div>
<div class="line"><a id="l01794" name="l01794"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a55febc128e585b2138b4d08ea5eb1dc1"> 1794</a></span><span class="preprocessor">#define prvTraceStoreEvent_ParamParamParam(_eventID, _param1, _param2, _param3) xTraceEventCreate3(_eventID, (TraceUnsignedBaseType_t)(_param1), (TraceUnsignedBaseType_t)(_param2), (TraceUnsignedBaseType_t)(_param3))</span></div>
<div class="line"><a id="l01795" name="l01795"></a><span class="lineno"> 1795</span> </div>
<div class="line"><a id="l01801" name="l01801"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a595c6523320f46204bdac038591f9bdb"> 1801</a></span><span class="preprocessor">#define vTraceSetStopHook(x) (void)(x)</span></div>
<div class="line"><a id="l01802" name="l01802"></a><span class="lineno"> 1802</span> </div>
<div class="line"><a id="l01806" name="l01806"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#aba11ae447ecd0b85b8a98fca71c8e124"> 1806</a></span><span class="preprocessor">#define vTraceInitTimestamps() </span></div>
<div class="line"><a id="l01807" name="l01807"></a><span class="lineno"> 1807</span> </div>
<div class="line"><a id="l01808" name="l01808"></a><span class="lineno"> 1808</span><span class="preprocessor">#endif </span><span class="comment">/*(TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_STREAMING)*/</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01809" name="l01809"></a><span class="lineno"> 1809</span> </div>
<div class="line"><a id="l01810" name="l01810"></a><span class="lineno"> 1810</span><span class="preprocessor">#if (TRC_CFG_RECORDER_BUFFER_ALLOCATION == TRC_RECORDER_BUFFER_ALLOCATION_CUSTOM)</span></div>
<div class="line"><a id="l01819" name="l01819"></a><span class="lineno"> 1819</span>traceResult <a class="code hl_function" href="trcRecorder_8h.html#adf9a9f603f0c43cb8793bfc4861fc2c3">xTraceSetBuffer</a>(TraceRecorderData_t *pxBuffer);</div>
<div class="line"><a id="l01820" name="l01820"></a><span class="lineno"> 1820</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l01821" name="l01821"></a><span class="lineno"> 1821</span><span class="preprocessor">#define xTraceSetBuffer(p) (TRC_SUCCESS)</span></div>
<div class="line"><a id="l01822" name="l01822"></a><span class="lineno"> 1822</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l01823" name="l01823"></a><span class="lineno"> 1823</span> </div>
<div class="line"><a id="l01833" name="l01833"></a><span class="lineno"> 1833</span>traceResult <a class="code hl_function" href="trcRecorder_8h.html#aa2d68495afa8821369279f8b12250b48">xTraceGetEventBuffer</a>(<span class="keywordtype">void</span>** ppvBuffer, TraceUnsignedBaseType_t * puiSize);</div>
<div class="line"><a id="l01834" name="l01834"></a><span class="lineno"> 1834</span> </div>
<div class="line"><a id="l01835" name="l01835"></a><span class="lineno"> 1835</span><span class="preprocessor">#else </span><span class="comment">/* when TRC_USE_TRACEALYZER_RECORDER == 0 */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01836" name="l01836"></a><span class="lineno"> 1836</span> </div>
<div class="line"><a id="l01837" name="l01837"></a><span class="lineno"> 1837</span><span class="preprocessor">#define xTraceInitialize() (TRC_SUCCESS)</span></div>
<div class="line"><a id="l01838" name="l01838"></a><span class="lineno"> 1838</span><span class="preprocessor">#define xTraceEnable(x) ((void)(x), TRC_SUCCESS)</span></div>
<div class="line"><a id="l01839" name="l01839"></a><span class="lineno"> 1839</span><span class="preprocessor">#define xTraceDisable() (TRC_SUCCESS)</span></div>
<div class="line"><a id="l01840" name="l01840"></a><span class="lineno"> 1840</span> </div>
<div class="line"><a id="l01841" name="l01841"></a><span class="lineno"> 1841</span><span class="preprocessor">#if (TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_SNAPSHOT)</span></div>
<div class="line"><a id="l01842" name="l01842"></a><span class="lineno"> 1842</span><span class="preprocessor">#define xTraceStringRegister(x, y) ((void)(x), (void)y, TRC_SUCCESS) </span><span class="comment">/* Comma operator in parenthesis is used to avoid &quot;unused variable&quot; compiler warnings and return 0 in a single statement */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01843" name="l01843"></a><span class="lineno"> 1843</span><span class="preprocessor">#define xTracePrint(chn, ...) ((void)(chn), TRC_SUCCESS)</span></div>
<div class="line"><a id="l01844" name="l01844"></a><span class="lineno"> 1844</span><span class="preprocessor">#define xTracePrintF(chn, fmt, ...) ((void)(chn), (void)(fmt), TRC_SUCCESS) </span><span class="comment">/* Comma operator is used to avoid &quot;unused variable&quot; compiler warnings in a single statement */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01845" name="l01845"></a><span class="lineno"> 1845</span><span class="preprocessor">#define xTraceVPrintF(chn, formatStr, vl) ((void)(chn), (void)(formatStr), (void)(vl), TRC_SUCCESS) </span><span class="comment">/* Comma operator is used to avoid &quot;unused variable&quot; compiler warnings in a single statement */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01846" name="l01846"></a><span class="lineno"> 1846</span><span class="preprocessor">#define xTraceTaskInstanceFinishedNow()</span></div>
<div class="line"><a id="l01847" name="l01847"></a><span class="lineno"> 1847</span><span class="preprocessor">#define xTraceTaskInstanceFinishedNext()</span></div>
<div class="line"><a id="l01848" name="l01848"></a><span class="lineno"> 1848</span><span class="preprocessor">#define vTraceStoreISRBegin(x) (void)(x)</span></div>
<div class="line"><a id="l01849" name="l01849"></a><span class="lineno"> 1849</span><span class="preprocessor">#define vTraceStoreISREnd(x) (void)(x)</span></div>
<div class="line"><a id="l01850" name="l01850"></a><span class="lineno"> 1850</span><span class="preprocessor">#define xTraceSetISRProperties(a, b) ((void)(a), (void)(b), (traceHandle)0) </span><span class="comment">/* Comma operator in parenthesis is used to avoid &quot;unused variable&quot; compiler warnings and return 0 in a single statement */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01851" name="l01851"></a><span class="lineno"> 1851</span><span class="preprocessor">#define xTraceRegisterChannelFormat(eventLabel, formatStr) ((void)(eventLabel), (void)(formatStr), 0) </span><span class="comment">/* Comma operator in parenthesis is used to avoid &quot;unused variable&quot; compiler warnings and return 0 in a single statement */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01852" name="l01852"></a><span class="lineno"> 1852</span><span class="preprocessor">#define vTraceUBData(label, ...) (void)(label)</span></div>
<div class="line"><a id="l01853" name="l01853"></a><span class="lineno"> 1853</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l01854" name="l01854"></a><span class="lineno"> 1854</span> </div>
<div class="line"><a id="l01855" name="l01855"></a><span class="lineno"> 1855</span><span class="preprocessor">#define prvTraceStoreEvent_None(_eventID) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2((void)(_eventID), TRC_SUCCESS)</span></div>
<div class="line"><a id="l01856" name="l01856"></a><span class="lineno"> 1856</span> </div>
<div class="line"><a id="l01857" name="l01857"></a><span class="lineno"> 1857</span><span class="preprocessor">#define prvTraceStoreEvent_Handle(_eventID, _handle) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_3((void)(_eventID), (void)(_handle), TRC_SUCCESS)</span></div>
<div class="line"><a id="l01858" name="l01858"></a><span class="lineno"> 1858</span> </div>
<div class="line"><a id="l01859" name="l01859"></a><span class="lineno"> 1859</span><span class="preprocessor">#define prvTraceStoreEvent_Param(_eventID, _param1)  TRC_COMMA_EXPR_TO_STATEMENT_EXPR_3((void)(_eventID), (void)(_param1), TRC_SUCCESS)</span></div>
<div class="line"><a id="l01860" name="l01860"></a><span class="lineno"> 1860</span> </div>
<div class="line"><a id="l01861" name="l01861"></a><span class="lineno"> 1861</span><span class="preprocessor">#define prvTraceStoreEvent_HandleParam(_eventID, _handle, _param1) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_4((void)(_eventID), (void)(_handle), (void)(_param1), TRC_SUCCESS)</span></div>
<div class="line"><a id="l01862" name="l01862"></a><span class="lineno"> 1862</span> </div>
<div class="line"><a id="l01863" name="l01863"></a><span class="lineno"> 1863</span><span class="preprocessor">#define prvTraceStoreEvent_ParamParam(_eventID, _param1, _param2) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_4((void)(_eventID), (void)(_param1), (void)(_param2), TRC_SUCCESS)</span></div>
<div class="line"><a id="l01864" name="l01864"></a><span class="lineno"> 1864</span> </div>
<div class="line"><a id="l01865" name="l01865"></a><span class="lineno"> 1865</span><span class="preprocessor">#define prvTraceStoreEvent_HandleParamParam(_eventID, _handle, _param1, _param2) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_5((void)(_eventID), (void)(_handle), (void)(_param1), (void)(_param2), TRC_SUCCESS)</span></div>
<div class="line"><a id="l01866" name="l01866"></a><span class="lineno"> 1866</span> </div>
<div class="line"><a id="l01867" name="l01867"></a><span class="lineno"> 1867</span><span class="preprocessor">#define prvTraceStoreEvent_ParamParamParam(_eventID, _param1, _param2, _param3) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_5((void)(_eventID), (void)(_param1), (void)(_param2), (void)(_param3), TRC_SUCCESS)</span></div>
<div class="line"><a id="l01868" name="l01868"></a><span class="lineno"> 1868</span> </div>
<div class="line"><a id="l01869" name="l01869"></a><span class="lineno"> 1869</span><span class="preprocessor">#define vTraceSetFilterGroup(x) (void)(x)</span></div>
<div class="line"><a id="l01870" name="l01870"></a><span class="lineno"> 1870</span><span class="preprocessor">#define vTraceSetFilterMask(x) (void)(x)</span></div>
<div class="line"><a id="l01871" name="l01871"></a><span class="lineno"> 1871</span> </div>
<div class="line"><a id="l01872" name="l01872"></a><span class="lineno"> 1872</span><span class="preprocessor">#define prvTraceSetReadyEventsEnabled(status) (void)(status)</span></div>
<div class="line"><a id="l01873" name="l01873"></a><span class="lineno"> 1873</span> </div>
<div class="line"><a id="l01874" name="l01874"></a><span class="lineno"> 1874</span><span class="preprocessor">#define vTraceExcludeTask(handle) (void)(handle)</span></div>
<div class="line"><a id="l01875" name="l01875"></a><span class="lineno"> 1875</span> </div>
<div class="line"><a id="l01876" name="l01876"></a><span class="lineno"> 1876</span><span class="preprocessor">#define vTraceConsoleChannelPrintF(fmt, ...) (void)(fmt)</span></div>
<div class="line"><a id="l01877" name="l01877"></a><span class="lineno"> 1877</span> </div>
<div class="line"><a id="l01878" name="l01878"></a><span class="lineno"> 1878</span><span class="preprocessor">#ifndef TRC_ALLOC_CUSTOM_BUFFER</span></div>
<div class="line"><a id="l01879" name="l01879"></a><span class="lineno"> 1879</span><span class="preprocessor">#define TRC_ALLOC_CUSTOM_BUFFER(bufname)</span></div>
<div class="line"><a id="l01880" name="l01880"></a><span class="lineno"> 1880</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l01881" name="l01881"></a><span class="lineno"> 1881</span> </div>
<div class="line"><a id="l01882" name="l01882"></a><span class="lineno"> 1882</span><span class="preprocessor">#define xTraceIsRecorderEnabled() (0)</span></div>
<div class="line"><a id="l01883" name="l01883"></a><span class="lineno"> 1883</span><span class="preprocessor">#define xTraceIsRecorderInitialized() (0)</span></div>
<div class="line"><a id="l01884" name="l01884"></a><span class="lineno"> 1884</span> </div>
<div class="line"><a id="l01885" name="l01885"></a><span class="lineno"> 1885</span><span class="preprocessor">#define xTraceSetBuffer(p) (TRC_SUCCESS)</span></div>
<div class="line"><a id="l01886" name="l01886"></a><span class="lineno"> 1886</span><span class="preprocessor">#define xTraceGetEventBuffer(p) (TRC_FAIL)</span></div>
<div class="line"><a id="l01887" name="l01887"></a><span class="lineno"> 1887</span> </div>
<div class="line"><a id="l01888" name="l01888"></a><span class="lineno"> 1888</span><span class="preprocessor">#define vTraceSetStopHook(x) (void)(x)</span></div>
<div class="line"><a id="l01889" name="l01889"></a><span class="lineno"> 1889</span> </div>
<div class="line"><a id="l01890" name="l01890"></a><span class="lineno"> 1890</span><span class="preprocessor">#define TraceRecorderData_t uint32_t</span></div>
<div class="line"><a id="l01891" name="l01891"></a><span class="lineno"> 1891</span> </div>
<div class="line"><a id="l01892" name="l01892"></a><span class="lineno"> 1892</span><span class="preprocessor">#endif </span><span class="comment">/* (TRC_USE_TRACEALYZER_RECORDER == 1) */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01893" name="l01893"></a><span class="lineno"> 1893</span> </div>
<div class="line"><a id="l01897" name="l01897"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a4433d7c94ad4000866306078790197fe"> 1897</a></span><span class="preprocessor">#define vTraceInitialize (void)xTraceInitialize</span></div>
<div class="line"><a id="l01898" name="l01898"></a><span class="lineno"> 1898</span> </div>
<div class="line"><a id="l01902" name="l01902"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#ad81a6a12b34c4761097d25c6c9036887"> 1902</a></span><span class="preprocessor">#define vTraceEnable (void)xTraceEnable</span></div>
<div class="line"><a id="l01903" name="l01903"></a><span class="lineno"> 1903</span> </div>
<div class="line"><a id="l01907" name="l01907"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a54344b66a74433f50feee5cfdb726f91"> 1907</a></span><span class="preprocessor">#define vTraceStop (void)xTraceDisable</span></div>
<div class="line"><a id="l01908" name="l01908"></a><span class="lineno"> 1908</span> </div>
<div class="line"><a id="l01912" name="l01912"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#ac4441d3b4dd03eb69d335307d3650dae"> 1912</a></span><span class="preprocessor">#define vTraceInstanceFinishedNow (void)xTraceTaskInstanceFinishedNow</span></div>
<div class="line"><a id="l01913" name="l01913"></a><span class="lineno"> 1913</span> </div>
<div class="line"><a id="l01917" name="l01917"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a017e80004dee99fbe357c86c77940819"> 1917</a></span><span class="preprocessor">#define vTraceInstanceFinishedNext (void)xTraceTaskInstanceFinishedNext</span></div>
<div class="line"><a id="l01918" name="l01918"></a><span class="lineno"> 1918</span> </div>
<div class="line"><a id="l01922" name="l01922"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a56704be14a68b7e59a378fac22ff42c7"> 1922</a></span><span class="preprocessor">#define vTracePrintF (void)xTracePrintF</span></div>
<div class="line"><a id="l01923" name="l01923"></a><span class="lineno"> 1923</span> </div>
<div class="line"><a id="l01927" name="l01927"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a548dc97141d6e4d3049da174c5b23e16"> 1927</a></span><span class="preprocessor">#define vTraceVPrintF (void)xTraceVPrintF</span></div>
<div class="line"><a id="l01928" name="l01928"></a><span class="lineno"> 1928</span> </div>
<div class="line"><a id="l01932" name="l01932"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#a00d742ca47f84add37a93a8a0f3fb6c5"> 1932</a></span><span class="preprocessor">#define vTracePrint (void)xTracePrint</span></div>
<div class="line"><a id="l01933" name="l01933"></a><span class="lineno"> 1933</span> </div>
<div class="line"><a id="l01937" name="l01937"></a><span class="lineno"><a class="line" href="trcRecorder_8h.html#ab484288bbf50e8844cd63530c06808ab"> 1937</a></span><span class="preprocessor">#define vTraceSetRecorderDataBuffer(pxBuffer) xTraceSetBuffer((TraceRecorderData_t*)(pxBuffer))</span></div>
<div class="line"><a id="l01938" name="l01938"></a><span class="lineno"> 1938</span> </div>
<div class="line"><a id="l01939" name="l01939"></a><span class="lineno"> 1939</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l01940" name="l01940"></a><span class="lineno"> 1940</span>}</div>
<div class="line"><a id="l01941" name="l01941"></a><span class="lineno"> 1941</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l01942" name="l01942"></a><span class="lineno"> 1942</span> </div>
<div class="line"><a id="l01943" name="l01943"></a><span class="lineno"> 1943</span><span class="preprocessor">#endif </span><span class="comment">/* TRC_RECORDER_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="agroup__trace__isr__apis_html_ga0ef382e6e5964c8db9b807434b931921"><div class="ttname"><a href="group__trace__isr__apis.html#ga0ef382e6e5964c8db9b807434b931921">xTraceISRRegister</a></div><div class="ttdeci">traceResult xTraceISRRegister(const char *szName, uint32_t uiPriority, TraceISRHandle_t *pxISRHandle)</div><div class="ttdoc">Registers an ISR.</div><div class="ttdef"><b>Definition:</b> trcISR.c:47</div></div>
<div class="ttc" id="agroup__trace__isr__apis_html_ga28db1b1d4243e36cb68178af0387206a"><div class="ttname"><a href="group__trace__isr__apis.html#ga28db1b1d4243e36cb68178af0387206a">xTraceISRBegin</a></div><div class="ttdeci">traceResult xTraceISRBegin(TraceISRHandle_t xHandle)</div><div class="ttdoc">Registers the beginning of an Interrupt Service Routine, using a TraceISRHandle_t provided by xTraceI...</div><div class="ttdef"><b>Definition:</b> trcISR.c:94</div></div>
<div class="ttc" id="agroup__trace__print__apis_html_gab883a6ad75c359454757ddb0503f5d3b"><div class="ttname"><a href="group__trace__print__apis.html#gab883a6ad75c359454757ddb0503f5d3b">xTracePrint</a></div><div class="ttdeci">traceResult xTracePrint(TraceStringHandle_t chn, const char *str)</div><div class="ttdoc">A faster version of xTracePrintF, that only allows for logging a string.</div><div class="ttdef"><b>Definition:</b> trcPrint.c:37</div></div>
<div class="ttc" id="agroup__trace__print__apis_html_gaf7a1c759021aaf820223232de9173c9c"><div class="ttname"><a href="group__trace__print__apis.html#gaf7a1c759021aaf820223232de9173c9c">xTracePrintF</a></div><div class="ttdeci">traceResult xTracePrintF(TraceStringHandle_t chn, const char *fmt,...)</div><div class="ttdoc">Generates &quot;User Events&quot;, with formatted text and data, similar to a &quot;printf&quot;. User Events can be used...</div><div class="ttdef"><b>Definition:</b> trcPrint.c:166</div></div>
<div class="ttc" id="astructObjectPropertyTableType_html"><div class="ttname"><a href="structObjectPropertyTableType.html">ObjectPropertyTableType</a></div><div class="ttdoc">Object property table struct.</div><div class="ttdef"><b>Definition:</b> trcRecorder.h:1219</div></div>
<div class="ttc" id="astructTraceKernelPortDataBuffer_html"><div class="ttname"><a href="structTraceKernelPortDataBuffer.html">TraceKernelPortDataBuffer</a></div><div class="ttdoc">A structure representing the kernel port buffer.</div><div class="ttdef"><b>Definition:</b> trcKernelPort.h:76</div></div>
<div class="ttc" id="astructTraceStreamPortBuffer_html"><div class="ttname"><a href="structTraceStreamPortBuffer.html">TraceStreamPortBuffer</a></div><div class="ttdoc">A structure representing the trace stream port buffer.</div><div class="ttdef"><b>Definition:</b> trcStreamPort.h:93</div></div>
<div class="ttc" id="astructTraceTimestampData_html"><div class="ttname"><a href="structTraceTimestampData.html">TraceTimestampData</a></div><div class="ttdoc">Trace Timestamp Structure.</div><div class="ttdef"><b>Definition:</b> trcTimestamp.h:36</div></div>
<div class="ttc" id="astructobjectHandleStackType_html"><div class="ttname"><a href="structobjectHandleStackType.html">objectHandleStackType</a></div><div class="ttdoc">Object handle stack struct.</div><div class="ttdef"><b>Definition:</b> trcRecorder.h:1191</div></div>
<div class="ttc" id="astructsymbolTableType_html"><div class="ttname"><a href="structsymbolTableType.html">symbolTableType</a></div><div class="ttdoc">Symbol table structure.</div><div class="ttdef"><b>Definition:</b> trcRecorder.h:1248</div></div>
<div class="ttc" id="atrcAssert_8h_html"><div class="ttname"><a href="trcAssert_8h.html">trcAssert.h</a></div><div class="ttdoc">Public trace assert APIs.</div></div>
<div class="ttc" id="atrcCounter_8h_html"><div class="ttname"><a href="trcCounter_8h.html">trcCounter.h</a></div><div class="ttdoc">Public trace counter APIs.</div></div>
<div class="ttc" id="atrcDependency_8h_html"><div class="ttname"><a href="trcDependency_8h.html">trcDependency.h</a></div><div class="ttdoc">Public trace dependency APIs.</div></div>
<div class="ttc" id="atrcDiagnostics_8h_html"><div class="ttname"><a href="trcDiagnostics_8h.html">trcDiagnostics.h</a></div><div class="ttdoc">Public trace diagnostic APIs.</div></div>
<div class="ttc" id="atrcEntryTable_8h_html"><div class="ttname"><a href="trcEntryTable_8h.html">trcEntryTable.h</a></div><div class="ttdoc">Public trace entry table APIs.</div></div>
<div class="ttc" id="atrcError_8h_html"><div class="ttname"><a href="trcError_8h.html">trcError.h</a></div><div class="ttdoc">Public trace error APIs.</div></div>
<div class="ttc" id="atrcEventBuffer_8h_html"><div class="ttname"><a href="trcEventBuffer_8h.html">trcEventBuffer.h</a></div><div class="ttdoc">Public trace event buffer APIs.</div></div>
<div class="ttc" id="atrcEvent_8h_html"><div class="ttname"><a href="trcEvent_8h.html">trcEvent.h</a></div><div class="ttdoc">Public trace event APIs.</div></div>
<div class="ttc" id="atrcExtension_8h_html"><div class="ttname"><a href="trcExtension_8h.html">trcExtension.h</a></div><div class="ttdoc">Public trace extension APIs.</div></div>
<div class="ttc" id="atrcHeap_8h_html"><div class="ttname"><a href="trcHeap_8h.html">trcHeap.h</a></div><div class="ttdoc">Public trace heap APIs.</div></div>
<div class="ttc" id="atrcISR_8h_html"><div class="ttname"><a href="trcISR_8h.html">trcISR.h</a></div><div class="ttdoc">Public trace ISR APIs.</div></div>
<div class="ttc" id="atrcInternalEventBuffer_8h_html"><div class="ttname"><a href="trcInternalEventBuffer_8h.html">trcInternalEventBuffer.h</a></div><div class="ttdoc">Public internal event buffer APIs.</div></div>
<div class="ttc" id="atrcInterval_8h_html"><div class="ttname"><a href="trcInterval_8h.html">trcInterval.h</a></div><div class="ttdoc">Public trace interval APIs.</div></div>
<div class="ttc" id="atrcMultiCoreEventBuffer_8h_html"><div class="ttname"><a href="trcMultiCoreEventBuffer_8h.html">trcMultiCoreEventBuffer.h</a></div></div>
<div class="ttc" id="atrcObject_8h_html"><div class="ttname"><a href="trcObject_8h.html">trcObject.h</a></div><div class="ttdoc">Public trace object APIs.</div></div>
<div class="ttc" id="atrcPrint_8h_html"><div class="ttname"><a href="trcPrint_8h.html">trcPrint.h</a></div><div class="ttdoc">Public trace print APIs.</div></div>
<div class="ttc" id="atrcProcess_8h_html"><div class="ttname"><a href="trcProcess_8h.html">trcProcess.h</a></div><div class="ttdoc">Public trace process APIs.</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a09709a126202d06f02c9bb390dde9530"><div class="ttname"><a href="trcRecorder_8h.html#a09709a126202d06f02c9bb390dde9530">uiTraceGetTraceBufferSize</a></div><div class="ttdeci">uint32_t uiTraceGetTraceBufferSize(void)</div><div class="ttdoc">Gets the size of the recorder data structure. For use together with xTraceGetTraceBuffer if you wish ...</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:523</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a0a44ba3c19b138067aecae815af61ca2"><div class="ttname"><a href="trcRecorder_8h.html#a0a44ba3c19b138067aecae815af61ca2">xTraceIsRecorderInitialized</a></div><div class="ttdeci">#define xTraceIsRecorderInitialized()</div><div class="ttdoc">Query if recorder initialized.</div><div class="ttdef"><b>Definition:</b> trcRecorder.h:1681</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a0a99f73c4b615dd1b9f1176457969510"><div class="ttname"><a href="trcRecorder_8h.html#a0a99f73c4b615dd1b9f1176457969510">prvTraceSetTaskInstanceFinished</a></div><div class="ttdeci">void prvTraceSetTaskInstanceFinished(traceHandle handle)</div><div class="ttdoc">Flags a task instance as finished.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:2354</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a0dc702c30539813811556694b07c806c"><div class="ttname"><a href="trcRecorder_8h.html#a0dc702c30539813811556694b07c806c">xTraceTzCtrl</a></div><div class="ttdeci">traceResult xTraceTzCtrl(void)</div><div class="ttdoc">Call this function periodically.</div><div class="ttdef"><b>Definition:</b> trcStreamingRecorder.c:445</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a15ba5c0835d0f746e7a721b8acedab70"><div class="ttname"><a href="trcRecorder_8h.html#a15ba5c0835d0f746e7a721b8acedab70">xTraceISREnd</a></div><div class="ttdeci">traceResult xTraceISREnd(int pendingISR)</div><div class="ttdoc">Registers the end of an Interrupt Service Routine.</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a16c82bbd9f4fe8df1cd5c544f988e827"><div class="ttname"><a href="trcRecorder_8h.html#a16c82bbd9f4fe8df1cd5c544f988e827">xTraceTaskInstanceFinishedNext</a></div><div class="ttdeci">traceResult xTraceTaskInstanceFinishedNext(void)</div><div class="ttdoc">Marks the current &quot;task instance&quot; as finished on the next kernel call.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:594</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a1991479e9a6d6653333f8bb854abbbab"><div class="ttname"><a href="trcRecorder_8h.html#a1991479e9a6d6653333f8bb854abbbab">xTraceIsRecorderEnabled</a></div><div class="ttdeci">#define xTraceIsRecorderEnabled()</div><div class="ttdoc">Query if recorder is enabled.</div><div class="ttdef"><b>Definition:</b> trcRecorder.h:1673</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a21379c3d2f31b2370bc19c5c2ddce32f"><div class="ttname"><a href="trcRecorder_8h.html#a21379c3d2f31b2370bc19c5c2ddce32f">xTraceTaskInstanceFinishedNow</a></div><div class="ttdeci">traceResult xTraceTaskInstanceFinishedNow(void)</div><div class="ttdoc">Creates an event that ends the current task instance at this very instant. This makes the viewer to s...</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:625</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a34a75e8fda85479d917a3038ab437813"><div class="ttname"><a href="trcRecorder_8h.html#a34a75e8fda85479d917a3038ab437813">prvTraceGetObjectHandle</a></div><div class="ttdeci">traceHandle prvTraceGetObjectHandle(traceObjectClass objectclass)</div><div class="ttdoc">Reserve an object handle.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:2404</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a376825a7b6d85ac515de47b0dcdb0c40"><div class="ttname"><a href="trcRecorder_8h.html#a376825a7b6d85ac515de47b0dcdb0c40">xTraceGetTraceBuffer</a></div><div class="ttdeci">void * xTraceGetTraceBuffer(void)</div><div class="ttdoc">Returns a pointer to the recorder data structure. Use this together with uiTraceGetTraceBufferSize if...</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:511</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a3b03d1095ea88af99c6e3d0e785834aa"><div class="ttname"><a href="trcRecorder_8h.html#a3b03d1095ea88af99c6e3d0e785834aa">prvTraceFreeObjectHandle</a></div><div class="ttdeci">void prvTraceFreeObjectHandle(traceObjectClass objectclass, traceHandle handle)</div><div class="ttdoc">Free an object handle.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:2456</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a438c3685b1e39f8c507982077e135fe0"><div class="ttname"><a href="trcRecorder_8h.html#a438c3685b1e39f8c507982077e135fe0">vTraceClear</a></div><div class="ttdeci">void vTraceClear(void)</div><div class="ttdoc">Resets the recorder.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:376</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a49eb54508af420dee28fac922ce42a73"><div class="ttname"><a href="trcRecorder_8h.html#a49eb54508af420dee28fac922ce42a73">xTraceVPrintF</a></div><div class="ttdeci">traceResult xTraceVPrintF(TraceStringHandle_t eventLabel, const char *formatStr, va_list vl)</div><div class="ttdoc">xTracePrintF variant that accepts a va_list. See xTracePrintF documentation for further details.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:1426</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a5313aac36d433a500e2036f3fea541aa"><div class="ttname"><a href="trcRecorder_8h.html#a5313aac36d433a500e2036f3fea541aa">xTraceHeaderInitialize</a></div><div class="ttdeci">traceResult xTraceHeaderInitialize(TraceHeaderBuffer_t *pxBuffer)</div><div class="ttdoc">Initializes the header data.</div><div class="ttdef"><b>Definition:</b> trcStreamingRecorder.c:274</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a53b3131f5fb7c6c23629d2d472d80655"><div class="ttname"><a href="trcRecorder_8h.html#a53b3131f5fb7c6c23629d2d472d80655">prvTraceStoreObjectNameOnCloseEvent</a></div><div class="ttdeci">void prvTraceStoreObjectNameOnCloseEvent(uint8_t evtcode, traceHandle handle, traceObjectClass objectclass)</div><div class="ttdoc">Stores the name of an object because it is being deleted.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:2254</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a544078dcebe479dc4a4033dabcaeda44"><div class="ttname"><a href="trcRecorder_8h.html#a544078dcebe479dc4a4033dabcaeda44">prvReportStackUsage</a></div><div class="ttdeci">void prvReportStackUsage(void)</div><div class="ttdoc">Reports on the current stack usage.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:3255</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a55cefe256f7bfcfa9085667696a1752d"><div class="ttname"><a href="trcRecorder_8h.html#a55cefe256f7bfcfa9085667696a1752d">xTraceInitialize</a></div><div class="ttdeci">traceResult xTraceInitialize(void)</div><div class="ttdoc">Initializes the recorder data. xTraceInitialize() or xTraceEnable(...) must be called before any atte...</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:1631</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a595c6523320f46204bdac038591f9bdb"><div class="ttname"><a href="trcRecorder_8h.html#a595c6523320f46204bdac038591f9bdb">vTraceSetStopHook</a></div><div class="ttdeci">#define vTraceSetStopHook(x)</div><div class="ttdoc">Snapshot mode only. Trace stop hook.</div><div class="ttdef"><b>Definition:</b> trcRecorder.h:1801</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a5cb58f094eb23d0a9ef7984b498e7d9f"><div class="ttname"><a href="trcRecorder_8h.html#a5cb58f094eb23d0a9ef7984b498e7d9f">vTraceSetFilterMask</a></div><div class="ttdeci">void vTraceSetFilterMask(uint16_t filterMask)</div><div class="ttdoc">For snapshot mode only: Sets the &quot;filter mask&quot; that is used to filter the events by object....</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:2637</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a62af22d9ff86d507040b538cf0c86c53"><div class="ttname"><a href="trcRecorder_8h.html#a62af22d9ff86d507040b538cf0c86c53">xTraceDisable</a></div><div class="ttdeci">traceResult xTraceDisable(void)</div><div class="ttdoc">Disables tracing.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:364</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a689f9cad63fd3aebb3264b9b04793a3c"><div class="ttname"><a href="trcRecorder_8h.html#a689f9cad63fd3aebb3264b9b04793a3c">prvRemoveTaskFromStackMonitor</a></div><div class="ttdeci">void prvRemoveTaskFromStackMonitor(void *task)</div><div class="ttdoc">Remove a task from the stack monitor.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:3241</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a80ef75431674bd23f75b4658f5ebce16"><div class="ttname"><a href="trcRecorder_8h.html#a80ef75431674bd23f75b4658f5ebce16">TRACE_STOP_HOOK</a></div><div class="ttdeci">void(* TRACE_STOP_HOOK)(void)</div><div class="ttdoc">Trace stop callback type.</div><div class="ttdef"><b>Definition:</b> trcRecorder.h:688</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a81554165bf93ae937cd351d805af2d23"><div class="ttname"><a href="trcRecorder_8h.html#a81554165bf93ae937cd351d805af2d23">prvTraceSetPriorityProperty</a></div><div class="ttdeci">void prvTraceSetPriorityProperty(uint8_t objectclass, traceHandle id, uint8_t value)</div><div class="ttdoc">Set priority.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:2314</div></div>
<div class="ttc" id="atrcRecorder_8h_html_a9aaff74096a29ec70283d99001afc11b"><div class="ttname"><a href="trcRecorder_8h.html#a9aaff74096a29ec70283d99001afc11b">prvTraceSetObjectState</a></div><div class="ttdeci">void prvTraceSetObjectState(uint8_t objectclass, traceHandle id, uint8_t value)</div><div class="ttdoc">Set object state.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:2334</div></div>
<div class="ttc" id="atrcRecorder_8h_html_aa011a8bb0aabcdf311f4ca0e4f106e2a"><div class="ttname"><a href="trcRecorder_8h.html#aa011a8bb0aabcdf311f4ca0e4f106e2a">prvTraceSetObjectName</a></div><div class="ttdeci">void prvTraceSetObjectName(traceObjectClass objectclass, traceHandle handle, const char *name)</div><div class="ttdoc">Set the object name.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:2516</div></div>
<div class="ttc" id="atrcRecorder_8h_html_aa21cb18b5c3f0c46d33e43ef1425427b"><div class="ttname"><a href="trcRecorder_8h.html#aa21cb18b5c3f0c46d33e43ef1425427b">prvTraceStoreTaskswitch</a></div><div class="ttdeci">void prvTraceStoreTaskswitch(traceHandle task_handle)</div><div class="ttdoc">Stores a Task Switch event.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:2194</div></div>
<div class="ttc" id="atrcRecorder_8h_html_aa2d68495afa8821369279f8b12250b48"><div class="ttname"><a href="trcRecorder_8h.html#aa2d68495afa8821369279f8b12250b48">xTraceGetEventBuffer</a></div><div class="ttdeci">traceResult xTraceGetEventBuffer(void **ppvBuffer, TraceUnsignedBaseType_t *puiSize)</div><div class="ttdoc">Retrieve the event buffer and event buffer size.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:315</div></div>
<div class="ttc" id="atrcRecorder_8h_html_aa73a8410deee18065299362b64620d79"><div class="ttname"><a href="trcRecorder_8h.html#aa73a8410deee18065299362b64620d79">prvTraceStoreKernelCall</a></div><div class="ttdeci">void prvTraceStoreKernelCall(uint32_t eventcode, traceObjectClass objectClass, uint32_t objectNumber)</div><div class="ttdoc">Stores a Kernel Service call event with an Object handle parameter.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:1986</div></div>
<div class="ttc" id="atrcRecorder_8h_html_aaa9ee50f419cb5dda37c17dfa0144c3a"><div class="ttname"><a href="trcRecorder_8h.html#aaa9ee50f419cb5dda37c17dfa0144c3a">xTraceStringRegister</a></div><div class="ttdeci">traceResult xTraceStringRegister(const char *label, TraceStringHandle_t *pxString)</div><div class="ttdoc">Registers a string and returns a handle that can be used when tracing.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:1611</div></div>
<div class="ttc" id="atrcRecorder_8h_html_ab4e0c3e0a12b29cb6eb57a4a807864f4"><div class="ttname"><a href="trcRecorder_8h.html#ab4e0c3e0a12b29cb6eb57a4a807864f4">prvTraceStoreObjectPropertiesOnCloseEvent</a></div><div class="ttdeci">void prvTraceStoreObjectPropertiesOnCloseEvent(uint8_t evtcode, traceHandle handle, traceObjectClass objectclass)</div><div class="ttdoc">Stores the property of an object because it is being deleted.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:2284</div></div>
<div class="ttc" id="atrcRecorder_8h_html_ab8880560ab4d9c96029e2e824269afad"><div class="ttname"><a href="trcRecorder_8h.html#ab8880560ab4d9c96029e2e824269afad">prvTraceError</a></div><div class="ttdeci">void prvTraceError(const char *msg)</div><div class="ttdoc">Signals a trace error.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:2617</div></div>
<div class="ttc" id="atrcRecorder_8h_html_abe8587ed483787a0c372b8bb17076f61"><div class="ttname"><a href="trcRecorder_8h.html#abe8587ed483787a0c372b8bb17076f61">prvTraceStoreTaskReady</a></div><div class="ttdeci">void prvTraceStoreTaskReady(traceHandle handle)</div><div class="ttdoc">Stores a Task Ready event.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:1787</div></div>
<div class="ttc" id="atrcRecorder_8h_html_ac0e6e943899c820592887e23ec907f49"><div class="ttname"><a href="trcRecorder_8h.html#ac0e6e943899c820592887e23ec907f49">prvTraceSetReadyEventsEnabled</a></div><div class="ttdeci">void prvTraceSetReadyEventsEnabled(uint32_t flag)</div><div class="ttdoc">Dynamically enables ready events.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:1777</div></div>
<div class="ttc" id="atrcRecorder_8h_html_aca15d85007f5a7172dba6ed8b61a6bda"><div class="ttname"><a href="trcRecorder_8h.html#aca15d85007f5a7172dba6ed8b61a6bda">prvTraceStoreLowPower</a></div><div class="ttdeci">void prvTraceStoreLowPower(uint32_t flag)</div><div class="ttdoc">Stores a Low Power mode event.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:1851</div></div>
<div class="ttc" id="atrcRecorder_8h_html_adf9a9f603f0c43cb8793bfc4861fc2c3"><div class="ttname"><a href="trcRecorder_8h.html#adf9a9f603f0c43cb8793bfc4861fc2c3">xTraceSetBuffer</a></div><div class="ttdeci">traceResult xTraceSetBuffer(TraceRecorderData_t *pxBuffer)</div><div class="ttdoc">Set the recorder data buffer.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:302</div></div>
<div class="ttc" id="atrcRecorder_8h_html_ae63a278e4436542930f5a33898387209"><div class="ttname"><a href="trcRecorder_8h.html#ae63a278e4436542930f5a33898387209">prvTraceStoreKernelCallWithNumericParamOnly</a></div><div class="ttdeci">void prvTraceStoreKernelCallWithNumericParamOnly(uint32_t evtcode, uint32_t param)</div><div class="ttdoc">Stores a Kernel Service call event with only a numeric parameter.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:2144</div></div>
<div class="ttc" id="atrcRecorder_8h_html_ae8ed2db2fbdca3b033e308cfbdcf6a4c"><div class="ttname"><a href="trcRecorder_8h.html#ae8ed2db2fbdca3b033e308cfbdcf6a4c">prvMarkObjectAsUsed</a></div><div class="ttdeci">void prvMarkObjectAsUsed(traceObjectClass objectclass, traceHandle handle)</div><div class="ttdoc">Mark object as used.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:2488</div></div>
<div class="ttc" id="atrcRecorder_8h_html_aea1bcdac03786dae79fe2a2089088f8e"><div class="ttname"><a href="trcRecorder_8h.html#aea1bcdac03786dae79fe2a2089088f8e">prvTracePortGetTimeStamp</a></div><div class="ttdeci">void prvTracePortGetTimeStamp(uint32_t *puiTimestamp)</div><div class="ttdoc">Returns the current time based on the HWTC macros which provide a hardware isolation layer towards th...</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:3103</div></div>
<div class="ttc" id="atrcRecorder_8h_html_af01cd6e240a45aa251b1e344bb8bde1b"><div class="ttname"><a href="trcRecorder_8h.html#af01cd6e240a45aa251b1e344bb8bde1b">prvTraceGetPriorityProperty</a></div><div class="ttdeci">uint8_t prvTraceGetPriorityProperty(uint8_t objectclass, traceHandle id)</div><div class="ttdoc">Get priority.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:2324</div></div>
<div class="ttc" id="atrcRecorder_8h_html_af17eedfd433bb638557a4ac0c5d77499"><div class="ttname"><a href="trcRecorder_8h.html#af17eedfd433bb638557a4ac0c5d77499">prvAddTaskToStackMonitor</a></div><div class="ttdeci">void prvAddTaskToStackMonitor(void *task)</div><div class="ttdoc">Adds a task to the stack monitor.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:3218</div></div>
<div class="ttc" id="atrcRecorder_8h_html_afc81d827c015a145b13333933a31f7d6"><div class="ttname"><a href="trcRecorder_8h.html#afc81d827c015a145b13333933a31f7d6">prvTraceStoreKernelCallWithParam</a></div><div class="ttdeci">void prvTraceStoreKernelCallWithParam(uint32_t evtcode, traceObjectClass objectClass, uint32_t objectNumber, uint32_t param)</div><div class="ttdoc">Stores a Kernel Service call event with an Object handle and a numeric parameter.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:2047</div></div>
<div class="ttc" id="atrcRecorder_8h_html_afd44a44fe62cd56a66a998e87dae821b"><div class="ttname"><a href="trcRecorder_8h.html#afd44a44fe62cd56a66a998e87dae821b">xTraceRegisterString</a></div><div class="ttdeci">TraceStringHandle_t xTraceRegisterString(const char *name)</div><div class="ttdoc">Registers a string and returns a handle that can be used when tracing.</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:1622</div></div>
<div class="ttc" id="atrcRecorder_8h_html_aff475da7b20b3621add3623b5e293575"><div class="ttname"><a href="trcRecorder_8h.html#aff475da7b20b3621add3623b5e293575">vTraceSetFilterGroup</a></div><div class="ttdeci">void vTraceSetFilterGroup(uint16_t filterGroup)</div><div class="ttdoc">For snapshot mode only: Sets the &quot;filter group&quot; to assign when creating RTOS objects,...</div><div class="ttdef"><b>Definition:</b> trcSnapshotRecorder.c:2642</div></div>
<div class="ttc" id="atrcRunnable_8h_html"><div class="ttname"><a href="trcRunnable_8h.html">trcRunnable.h</a></div><div class="ttdoc">Public trace runnable APIs.</div></div>
<div class="ttc" id="atrcStackMonitor_8h_html"><div class="ttname"><a href="trcStackMonitor_8h.html">trcStackMonitor.h</a></div><div class="ttdoc">Public trace stack monitor APIs.</div></div>
<div class="ttc" id="atrcStateMachine_8h_html"><div class="ttname"><a href="trcStateMachine_8h.html">trcStateMachine.h</a></div><div class="ttdoc">Public trace state machine APIs.</div></div>
<div class="ttc" id="atrcStaticBuffer_8h_html"><div class="ttname"><a href="trcStaticBuffer_8h.html">trcStaticBuffer.h</a></div><div class="ttdoc">Public trace static buffer APIs.</div></div>
<div class="ttc" id="atrcString_8h_html"><div class="ttname"><a href="trcString_8h.html">trcString.h</a></div><div class="ttdoc">Public trace string APIs.</div></div>
<div class="ttc" id="atrcTask_8h_html"><div class="ttname"><a href="trcTask_8h.html">trcTask.h</a></div><div class="ttdoc">Public trace task APIs.</div></div>
<div class="ttc" id="atrcThread_8h_html"><div class="ttname"><a href="trcThread_8h.html">trcThread.h</a></div><div class="ttdoc">Public trace thread APIs.</div></div>
<div class="ttc" id="atrcTimestamp_8h_html"><div class="ttname"><a href="trcTimestamp_8h.html">trcTimestamp.h</a></div><div class="ttdoc">Public trace timestamp APIs.</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="trcRecorder_8h.html">trcRecorder.h</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6 </li>
  </ul>
</div>
</body>
</html>
